View Single Post
Old 03-10-2019, 11:17 AM   #32
tonyyng
Enthusiast
tonyyng began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Jan 2019
Device: none
Success on using the dnw linux port, using the Makefile changes recommended by NickE

On Kobo (bootu)
Code:
eBR-1A # loadum 31000000
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_VBUS
IspHandle......................PHPDC_MODE_SOFTCT
IspHandle......................PHPDC_IE_RESM
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_RESM
IspHandle........................PHPDC_IE_RST
IspHandle......................PHPDC_IE_SUSP
IspHandle......................PHPDC_IE_RESM
IspHandle........................PHPDC_IE_RST
[isp_WaitForConfigure] download into 0x31000000
+phgPdc_Remove
-phPdc_Remove
[isp_WaitForConfigure]---
On Ubuntu:
Code:
tony@tony-Vostro-2520:~/dnw-linux-master/src/dnw$ ./dnw -a 0x31000000 Makefile
load address: 0x31000000
Can not open /dev/secbulk0: No such file or directory
tony@tony-Vostro-2520:~/dnw-linux-master/src/dnw$ ./dnw --help
./dnw: invalid option -- '-'
Usage: dwn [-a load_addr] <filename>
Default load address: 0x57e00000
Hmm - missing /dev/secbulk0?
Code:
tony@tony-Vostro-2520:/dev$ ls -l | grep secbulk
crw-rw-rw-  1 root disk    180,   1 Mar 10 10:19 secbulk1
tony@tony-Vostro-2520:/dev$ sudo ln -s secbulk1 secbulk0
Code:
tony@tony-Vostro-2520:~/dnw-linux-master/src/dnw$ ./dnw -a 0x31000000 Makefile
load address: 0x31000000
Writing data...
100%    0x00000061 bytes (0 K)
speed: infM/S
tony@tony-Vostro-2520:~/dnw-linux-master/src/dnw$
Back on Kobo:
Code:
eBR-1A # md 31000000
31000000: 776e640a 64203a20 632e776e 6367090a    .dnw : dnw.c..gc
31000010: 672d2063 206f2d20 24204024 0a090a5e    c -g -o $@ $^...
31000020: 61656c63 0a3a206e 206d7209 2066722d    clean :..rm -rf
31000030: 20776e64 0a6f2e2a 736e690a 6c6c6174    dnw *.o..install
31000040: 64203a20 090a776e 24207063 752f205e     : dnw..cp $^ /u
31000050: 622f7273 790a6e69 e1a00018 e1a00000    sr/bin.y........
31000060: ea000002 016f2818 00000000 0017a340    .....(o.....@...
31000070: e1a07001 e1a08002 e10f2000 e3120003    .p....... ......
I'm not sure why I needed to create the symlink for /dev/secbulk0, but dnw works after I created the link.

At this point, I'm uncertain as to what to do next. RandomInsano's approach for fixing the kernel was to modify the memory at 0x31000000 and then use nandw to update flash at 0x80000. However, the kernel was only ~1MB in size.

I think I'm trying to repair mtdblock6 which lives in flash at:
0x0a4c0000-0x40000000 : "other"

I have NickE's image file of mtblock6 which is 836MB in size. I don't want to mess things up, now that I've gotten this far.

Should I be using loadu or loadum? What memory address/flash address should I be using?

Thanks
tonyyng is offline   Reply With Quote