xc-racer99 / u-boot-aries

U-boot port for first-gen Galaxy S devices. Flashed in place of kernel with stock IBL/PBL/SBL. Kernel read from OneNAND/MMC/SD/Serial.
9 stars 2 forks source link

[WIP] Add distro boot support #25

Closed kwizart closed 5 years ago

kwizart commented 5 years ago

This is a WIP of the distro boot support as reported in issue#24

Currently working up to defining a good ramdisk_addr_r value.

Signed-off-by: Nicolas Chauvet kwizart@gmail.com

xc-racer99 commented 5 years ago

Hmm, looking good.

A couple of questions:

Edit: Just read your comment in #24 - I can add the UBI info as I have a booting Android install once you're happy with the MMC part of things. With the ramdisk address, I'm surprised it doesn't work as there's still 16MB of ram past there. You could try putting it at 0x40000000 as then you have a full 256MB to play with.

kwizart commented 5 years ago

label Fedora-30 kernel /boot/zImage append ro root=bd578d2e-1e02-41a8-8863-24d97486fa27 LANG=fr_FR.UTF-8 cma=64MB fdtdir /boot initrd /boot/initramfs-5.0.0-0.rc3.git0.1.fc30.armv7hl.img

label Fedora-Xfce-armhfp-Rawhide-20190121.n.1 (5.0.0-0.rc3.git0.1.fc30.armv7hl) kernel /boot/vmlinuz-5.0.0-0.rc3.git0.1.fc30.armv7hl append ro root=bd578d2e-1e02-41a8-8863-24d97486fa27 LANG=fr_FR.UTF-8 cma=64MB fdtdir /boot/dtb-5.0.0-0.rc3.git0.1.fc30.armv7hl/ initrd /boot/initramfs-5.0.0-0.rc3.git0.1.fc30.armv7hl.img



* I don't know if it can be autodetected or should we assume a per-board/soc partition layout as a convention.
* Once the ubifs support is sorted out, I think the idea would be for it to scan for extlinux.conf support first, then fallback to boot.scr automatically. By default it searches bootubipart and bootubivol can be used to control which partititon it should look at.

I will try to the new ramdisk address. The default initramfs in fedora is huge given it's a generic one, it can be reduced later...

EDIT: no luck with ramdisk address, I will open a separate ticket to sort that issue.
PabloPL commented 5 years ago

@kwizart This PR can be now closed?

xc-racer99 commented 5 years ago

Yep, this one can be closed, everything from it has been merged in #29

Thanks @kwizart for getting the ball rolling on this and for testing!