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

Comment 4 by shawn kemp, Mar 27, 2020

I’m usually to blogging and i actually appreciate your content. The 
article has genuinely peaks my interest. I’m going to bookmark your 
web page and maintain checking for new details. I am looking for some good blog sites for 

Comment 5 by Ben Dunk, Apr 29, 2020

In case there is nobody to play web game with you so you can 
moreover pick the decision of playing disengaged game with your own 
PC. One should click to find 
support in gambling club winning. Its mean game creators have 
diminished every sort of worriment of youths who wanna play PC games.

Created: 10 years 4 months ago by Wolfgang Spraul

Updated: 1 month 8 days ago

Status: Started

Owner: Xiangfu Liu

Followed by: 2 persons