Ben NanoNote

Sign in or create your account | Project List | Help

Issue 34: [ID: na] flashing problem

Reported by Wolfgang Spraul, Jan 25, 2010

On this particular device, we first boot via USB boot.
Device shows up with USB vendor and product ID in lsusb.

usbboot -c "boot; nerase 0 4096 0 0" works, but last line 
says "There are marked bad blocks: 2".

usbboot -c "nprog 0 openwrt-xburst-u-boot.bin 0 0 -n" 
fails with "Error: can't read bulk data from Ingenic 
With proprietary software, there were no problems flashing or 
booting this device.

Used 64-bit usbboot version (Debian package) from January 17. Image 

Comment 1 by Wolfgang Spraul, Jan 25, 2010

ID of the device: [na]

Comment 2 by Xiangfu Liu, Sep 1, 2011

it can boot to memcard by using 'xboot -u 0x80100000 u-boot.bin'
then flash u-boot and kernel under memcard system. 

== flash u-boot ==
#dump the first 32K from a working nanonote
#nanddump -n -i -o -l 32768 -f 32768.bin /dev/mtd0

#create the binary file
dd bs=1024 count=256 if=/dev/zero of=temp1.bin
cat 32768.bin temp1.bin > temp2.bin
dd bs=1024 count=256 if=temp2.bin of=temp3.bin

dd bs=1024 count=256 if=/dev/zero of=temp4.bin
cat u-boot.bin temp4.bin > temp5.bin
dd bs=1024 count=256 if=temp5.bin of=temp6.bin

cat temp3.bin temp6.bin > u-boot-nand.bin

#reflash the u-boot
flash_eraseall  /dev/mtd0

mtd write u-boot-nand.bin /dev/mtd0

== flash kernel ==
mtd.nn flash kernel /boot/uImage

== flash rootfs ==
boot to memcard first 
then format /dev/mtd2 by:
    ubiformat /dev/mtd2 -y
    ubiattach /dev/ubi_ctrl -m 3
    ubimkvol /dev/ubi0 -s 480MiB -N rootfs
    mount -t ubifs /dev/usb0_0 /data

sftp mount nanonote, extract rootfs.tar.gz to /data/
reboot nanonote.
Labels: Priority:Low, -Priority:Medium
Status: Started
Owner: xiangfu

Comment 3 by Xiangfu Liu, Sep 1, 2011

== flash rootfs ==
create symlinks not working under sftp, using:
    mtd.nn flash rootfs rootfs.ubi

Created: 10 years 2 days ago by Wolfgang Spraul

Updated: 8 years 4 months ago

Status: Started

Owner: Xiangfu Liu