As I recall, U-boot does not support boot from nand.John
adb push u-boot.bin /tmp
adb shell
mount /dev/block/nanda /boot
mv /boot/linux/u-boot.bin /boot/linux/u-boot.bin.orig
cp /tmp/u-boot.bin /boot/linux/u-boot.bin
umount /boot
reboot
pray to the gods of u-boot.
oliver
> I already tried this, but it didn't boot. How should I create
> u-boot.bin? From the lychee-dev branch? Does BROM *automatically* look
> for this file in the first partition in the linux subdirectory? There's
No.
If you want to boot from NAND, you are at the mercy of the AW boot devil.
Boot procedure is as follows, BROM -> boot0 -> boot1 -> boot.axf ->
(linux/boot.ini I think) -> u-boot.bin -> uImage
Could this be easier? sure, send a patch to integrate the mtd stuff into
our u-boot ;)
So why do you want to replace stock u-boot? You can build lichee-dev's
u-boot and should work just fine for sun4i and sun5i (memory issues
aside). If it doesn't boot, then something else may be wrong. I just
built it yesterday and came up fine (except for printing debug output
that I was after ;)
As michael said, you don't supposed to wipe them, you replace everything
EXCEPT nanda, as that is your boot partition. You can check the binary
boards section on github for some reference files, but ideally you need
to extract those from your (livesuit)image.
linux/boot.ini was a guess, could be linux.ini or whatever, it's an ini,
maybe even in the root, I don't recall.
How did you break your nanda? boot1 will look for the first partition
and it will only read it if it is fat. With the proper files on it it
should work (tm).
Note, you can't (easily) modify boot0 or boot1 (or the mbr/partition
table) as that is all outside of the addressable nand.
Basically (not exactly true if i'm not mistaken) /dev/nand == /dev/nanda;
So you can't use fdisk on /dev/nand; you can't use other things on nand
as you are used to. That's why we nand_part tool, it modifies the
partition table outside of the addressable nand space.
Boot0 and boot1 prefix that area, so you can't accidentally erase that
easily :)
>
> boot.fex is specifically interesting, since it is a mountable dos
> filesystem which contains boot.axf, boot.ini and consorts.
To repair your nanda, that's what you need.
make first partition fat, extract that content (copy probably your best
bet) to there and it should magically start working again.
oliver
205 static inline int abortboot(int bootdelay) 206 { 207 int abort = 0; 208 209 #ifdef CONFIG_MENUPROMPT 210 printf(CONFIG_MENUPROMPT); 211 #else 212 printf("Hit any key to stop autoboot: %2d ", bootdelay); 213 #endifYou received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.
Answers in line. Thanks
On Mar 9, 2014 11:34 AM, "hunter hu" <hunte...@gmail.com> wrote:
>
> Hi Neal,
>
> Thanks for that.
>
> I have no idea about the magic signing value, I have 3 questions and comments:
>
> 1> If I just use the original nandb.img which was dd out of the nand itself, will that still be needed?
No but I think you will have to change at least one parameter. I've got to find my notes on it..
> 2> if I do create a magic signing value again, how would I do that?
Its in the tools directory of a linux-sunxi u-boot repo.
https://github.com/linux-sunxi/u-boot-sunxi/blob/sunxi/tools/mkenvimage.c
Again I've got some notes somewhere on how to use it.
> 3> would this why my previous lichee-dev u-boot.bin doesn't play well with boot0/boot1? did I miss any magic value there?
There is a uboot signer in tools as well so maybe. When booting from band I stuck with the included Android u-boot.