02-10-2020, 12:03 PM | #1 |
Member
Posts: 24
Karma: 1088
Join Date: Dec 2009
Device: Pocketbook && Android
|
Booting Pocketbook in qemu
Hey folks,
I've been hacking my Touch Lux 4 lately - mainly trying to boot full system image in qemu. Here's what I am doing:
Now I am running: Code:
qemu-system-arm -M vexpress-a9 -kernel vmlinuz-3.2.0-4-vexpress -initrd initrd.img-3.2.0-4-vexpress -sd ../full_disk.raw -append "ext2=1 root=/dev/mmcblk0p7" I figured that I have to pass ext2=1 to kernel command line because otherwise it fails to mount the partition (idk why ext2 is not enabled by default in initrd). So right now the process goes all the way to running init which fails: Code:
/init: line 327: can't open /root/dev/console: no such file Any thoughts how can I make progress there? |
02-15-2020, 05:16 AM | #2 |
Zealot
Posts: 147
Karma: 20
Join Date: Jul 2019
Device: Kindle Touch (K5) Wi-Fi x 2, Kindle (7th Gen, KT2), Paperwhite 3rd Gen
|
You must add:
Code:
... console=ttyAMA0 |
Advert | |
|
02-17-2020, 07:18 AM | #3 | |
Member
Posts: 24
Karma: 1088
Join Date: Dec 2009
Device: Pocketbook && Android
|
Quote:
Code:
qemu-system-arm -M vexpress-a9 -kernel vmlinuz-3.2.0-4-vexpress -initrd initrd.img-3.2.0-4-vexpress -sd ../full_disk.qcow2 -append "ext2=1 root=/dev/mmcblk0p7 console=ttyS0" Code:
sgzmd@roman-dev:qemu/sunxi]$ qemu-system-arm -M vexpress-a9 -kernel vmlinuz-3.2.0-4-vexpress -initrd initrd.img-3.2.0-4-vexpress -sd ../full_disk.qcow2 -append "ext2=1 root=/dev/mmcblk0p7 console=ttyS0" pulseaudio: set_sink_input_volume() failed pulseaudio: Reason: Invalid argument pulseaudio: set_sink_input_mute() failed pulseaudio: Reason: Invalid argument Also Ctrl-C' no longer works (expected?) |
|
02-17-2020, 07:20 AM | #4 |
Member
Posts: 24
Karma: 1088
Join Date: Dec 2009
Device: Pocketbook && Android
|
Also, changing to console=ttyAMA0 produces identical result, that was just me playing. Not sure what's the difference to be completely honest.
|
02-27-2020, 08:44 AM | #5 |
Zealot
Posts: 121
Karma: 156515
Join Date: Oct 2019
Device: KT, KPW4, PB740-2
|
The monitor app won't boot in qemu as it expects a lot of I/O specific to this board it assumes to be present. Moreoever, real system uses multiple partitions you need to expose as mmc layout correctly - best is to just give it full NAND dump and let qemu expose that as full emmc device. A good starting point is to look at what the running system actually does and try to replicate that.
And even after that, you'll have to then manually patch monitor.app to ignore all the missing ioctls. In summary, it's not usually worth it. Its usually far simpler AND more useful (able to trace actual kernel) on a running system directly, on the device. Like most allwinner boards, it's neigh impossible to truly brick your system, even if you do something exceptionally silly, like wipe out whole emmc. The brom is smart enough to fallback to secondary mmc. Just make sure to do the important part: Have full dump of the stock emmc at hand, to have something you can restore. Official FW update files *cannot* really repair broken partitions on their own. |
Advert | |
|
02-28-2020, 05:22 AM | #6 | |
Member
Posts: 24
Karma: 1088
Join Date: Dec 2009
Device: Pocketbook && Android
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debian on modern kindles with pre-built qemu and debian image, scripts, desktop | theol0403 | Kindle Developer's Corner | 27 | 05-15-2021 03:57 PM |
PW Booting to CELESTE_WFO | autumnhasfallen | Kindle Developer's Corner | 1 | 09-28-2018 07:53 AM |
H2O not booting | boriar | Kobo Developer's Corner | 41 | 02-05-2015 08:11 AM |
DR1000 Where can I start qemu in Anjuta? | Gogolo | iRex Developer's Corner | 2 | 08-29-2011 04:44 PM |
More memory for qemu image | Mackx | iRex Developer's Corner | 2 | 06-27-2010 02:20 PM |