Open MerlijnWajer opened 4 years ago
So I've added support for this in https://github.com/parazyd/arm-sdk/commit/a5ad681c5417f962c947210885cf483f0bc9628b and propagated the change to image-builder in https://github.com/maemo-leste/image-builder/commit/e2665e3520ecfb963ab572ad0e34295726f125b4
Let's see if we can use 0xFFFF to flash this, and note it down on the wiki.
hmm, do we need u-boot.img
or u-boot.bin
?
parazyd@rishi:~/src/u-boot$ file u-boot.bin
u-boot.bin: COM executable for DOS
parazyd@rishi:~/src/u-boot$ file u-boot.img
u-boot.img: u-boot legacy uImage, U-Boot 2020.07-rc5-00096-g04da1c\270, Firmware/ARM, Firmware Image (Not compressed), 250320 bytes, Sun Jul 5 23:11:09 2020, Load Address: 0x80008000, Entry Point: 0x80008000, Header CRC: 0xE258FAFA, Data CRC: 0x0DB2635B
I have done this, and it's at https://maedevu.maemo.org/images/n900/tools/
Do we update the wiki to have people use this version now? I'd say that could make sense. We can also wait for the patches to land, but eh.
If at all possible, I would like to also have it packaged like this: https://github.com/maemo-leste/pine64-uboot
This way we can keep it up to date on the device if necessary. For this I'd prefer if the patches are in u-boot's git master.
wrt. wiki and generally booting (for the first time) - yes, we'll need a binary available like that so we can add it to the wiki ASAP.
Ok, so this ticket is now about creating a package for it, then?
14:58 < Wizzup> Pali: do you create your bootmenu entries from fremantle still, or do you manage them
externally? I'm wondering what the best way for leste to manage this would be
14:58 < Wizzup> I think we probably want some bootmenu.scr file on the sd card
14:58 < Wizzup> I was looking at u-boot/include/configs/nokia_rx51.h but it wasn't quite clear to me
14:59 < Wizzup> reading u-boot doc...
15:01 < Pali> IIRC upstream u-boot read bootmenu.scr also from sd card
15:01 < Wizzup> any clue what has preference?
15:01 < Wizzup> or are they combined somehow?
15:01 < Wizzup> I saw the preboot section
15:02 < Pali> now I checked it
15:02 < Pali> yes, it first loads it from sd card and then fallbacks to emmc
15:02 < Pali> include/configs/nokia_rx51.h
15:02 < Pali> preboot=
15:02 < Wizzup> ok, so if we have it on sd card we better make sure we have fremantle entry to allow
booting fremantle with sd card in
15:02 < Pali> yes!
This can probably fit in arm-sdk's N900 build script in a similar fashion to how Pinephone's u-boot is built.