Em Dom, 2009-02-22 às 18:49 +0100, R. Darius escreveu:
> could u give a short tutorial for flashing with gen-blob/boot_usb? (only 
> need the commands (and memadresses where i have) to flash the gen-blob, 
> old kernel and old root fs)

Download gen-blob version 090221 and update your boot_usb from our svn.

# first prepare your 2.4 kernel so you can boot without a mmc card (or
# skip this and put the 2.4 kernel at /boot/default on the mmc):
$ wget http://people.openezx.org/wyrm/gen-blob/magic-boot-from-flash
$ dd if=backup-of-2.4-kernel bs=1 count=917500 of=kernel-of-max-size
$ cat magic-boot-from-flash kernel-of-max-size > kernel-to-flash

# double check file size, cant be bigger than 917504 otherwise it will
# corrupt other stuff on flash
$ ls -l kernel-to-flash 

# check if kernel fit the the max size, the file ending bytes will be
# all FFFF or 0000, hexdump should show something like:
$ hexdump kernel-to-flash | tail
......
00d9440 ffff ffff ffff ffff ffff ffff ffff ffff
*
00e0000
# the exact ending may be different just assert that dd did not cut part
# of the kernel

# then go for the real deal:

# start here if you are using the original bootloader
$ boot_usb setflag usb
$ boot_usb gen-blob 0

# or here if you are already using gen-blob-090221 usb mode

# on GEN1: (a780, e680)
$ boot_usb flash 0x20000 gen-blob
$ boot_usb flash 0x40000 kernel-to-flash
$ boot_usb flash 0x120000 backup-of-2.4-rootfs

# or on GEN2: (a1200, a910, e2, e6)
$ dd if=/dev/zero bs=1024 count=2 > offset
$ cat offset gen-blob > gen-blob-for-gen2
$ boot_usb flash 0xA0000 gen-blob-for-gen2
$ boot_usb flash 0xC0000 kernel-to-flash
# gen2 rootfs address may vary depending on phone and firmware version
$ boot_usb flash XXXXXXX backup-of-2.4-rootfs

-- 
Daniel Ribeiro


Reply via email to