View Single Post
Old 09-20-2019, 07:58 AM   #17
WaseemAlkurdi
Zealot
WaseemAlkurdi began at the beginning.
 
Posts: 147
Karma: 20
Join Date: Jul 2019
Device: Kindle Touch (K5) Wi-Fi x 2, Kindle (7th Gen, KT2), Paperwhite 3rd Gen
Quote:
Originally Posted by pazos View Post
Did you try using https://github.com/qemu/qemu/blob/ma.../fsl-imx6ul.c?

Also you didn't specify the calls you're using to build u-boot and to run qemu. A good guide (a bit old): https://elinux.org/Virtual_Development_Board
I'm currently building QEMU 4.1.0 again using the file you linked me to above, though it only has one extra line compared to the one I'm using. Who knows? It might just work.
Edit: Didn't work.

For the U-Boot build, I did like a million builds using mainline U-Boot (U-Boot 2019.10-rc3 as of the time of writing). Each time, I would do this:
Code:
CROSS_COMPILE=~/arm-2014.05/bin/arm-none-linux-gnueabi- make ARCH=arm <name_of_defconfig>
CROSS_COMPILE=~/OLDarm-2014.05/bin/arm-none-linux-gnueabi- make ARCH=arm -j8
The list of defconfigs is obtained using this command:
Code:
$ ls ~/Downloads/u-boot-2019.10-rc3/configs/ | grep mx
With mainline, I would get an error about my GCC (the toolchain's) being older than 6.0 and thus unsupported, but after removing the assertion, the build would continue beautifully.
Building mainline for the Versatile and Versatile Express boards works, even when using the older GCC, and U-Boot actually boots, as illustrated in the link you attached.
But not the i.MX6 configs. Every config I tried failed to boot (but compiled successfully)
The only i.MX board which works is the i.MX25 board. But that's still too far from the Kindle, and the Kindle kernels won't boot on this board.
Nor would the Kindle kernels boot on QEMU's i.MX6 boards when I tried booting them without U-Boot.

As for booting in QEMU: I'm using a lot of different variations on this call: (please scroll right to view the whole line)
Code:
$ qemu-system-arm -M {mcimx6ul-evk|sabrelite|mcimx7d-sabre}* -m 512M {-kernel} ~/Downloads/u-boot-2019.10-rc3/{u-boot.bin|u-boot|u-boot.imx|u-boot.img} -monitor stdio {-dtb ~/Downloads/u-boot-2019.10-rc3/u-boot.dtb**} {-append "console=ttymxc0"}
* The bracelets indicate the possible variations I tried. For example, I would try the call with mcimx6ul-evk, and when that didn't work, I would try sabrelite, and so on.
** If generated by the build.

Last edited by WaseemAlkurdi; 09-20-2019 at 08:05 AM.
WaseemAlkurdi is offline   Reply With Quote