Highly improved unbricking method
Bas Wijnen
wijnen at debian.org
Sun Oct 10 11:04:56 EDT 2010
Hi,
Op 10-10-10 16:16, Xiangfu Liu schreef:
> how to compile the 'stage1.raw'? when I run "make" under
> iris.git. I got the 'iris.raw' and 'unbrick', but there
> is no 'stage1.raw'.
Yes, I should have told. This file is called
mips/nanonote/sdram-setup.raw by the build.
> here is the step I try in my pc(AMD64):
>
> 1. git clone git://projects.qi-hardware.com/iris.git
> 2. change the Makefile.arch:36 to:
> CROSS = mipsel-openwrt-linux-
> 3. make
> 4. objdump -t iris.elf | grep __start
> 200:80017000 g O .text 00000000 __start
> 5. wget http://downloads.qi-hardware.com/people/bas/20101010-unbrick/stage1.raw
>
> 6. sudo ./unbrick --entry $[0x80017000]
> booting iris.raw from 80000000 at 80017000
> sending stage 1
> running stage 1
> sending Iris (size 0x110416)
> unable to send control message to NanoNote: error sending control message: Connection timed out.
> Segmentation fault
This means the NanoNote hangs on executing stage1. That's very strange,
because I'm using the same file...
> ----
> nothing output in nanonote serial.
That is correct, serial output starts after stage 1.
> ----
> some info about 'dmesg':
> [28091.042106] usb 1-1: configuration #1 chosen from 1 choice
> [28114.440155] usb 1-1: usbfs: USBDEVFS_CONTROL failed cmd unbrick rqt 64 rq 1 len 0 ret -110
> [28114.440255] unbrick[8155]: segfault at 0 ip 00007fa4421267ad sp 00007fff89b259f0 error 4 in libusb-0.1.so.4.4.4[7fa442122000+7000]
Yes, this means the error is detected at the first command after stage 1
is started (the SET_DATA_ADDRESS for Iris).
Can you confirm with strace that stage1.raw is read by unbrick?
Thanks,
Bas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.en.qi-hardware.com/pipermail/discussion/attachments/20101010/527bda65/attachment.pgp>
More information about the discussion
mailing list