Moderator Control Panel ]

[SOLVED] Can install/update software.

Anything from the case design to the chip inside, from expectation to suggestion, the most important thing is, you are IN.

[SOLVED] Can install/update software.

Postby destinqo2 » Fri Jul 19, 2013 5:30 pm

Hello,

i try to update firmware 1.1. to 1.2 but it fail, as here:

NAND erase: device 0 offset 0x50c0000, size 0xaf40000
Skipping bad block at 0x052e0000
Skipping bad block at 0x05fc0000
Skipping bad block at 0x0b460000
Skipping bad block at 0x0c860000
Skipping bad block at 0x0f320000
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0xc0000000, size 0x50000000
Input block length is not page aligned
Data did not fit into device, due to bad blocks
1342177280 bytes written: ERROR

now my MOI is without firmware and i cant install any version (1.0,1.1,1.2).

what to do, is this a HW failure, or some setting can help (before flashing over serial console?)

thank in advance.
destinqo2
 
Posts: 8
Joined: Wed Jul 17, 2013 9:37 pm

Re: Can install/update software.

Postby gfi » Sat Jul 20, 2013 10:02 pm

Please, send full log from start to end. Include u-boot starting section.
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Can install/update software.

Postby destinqo2 » Mon Jul 22, 2013 3:00 pm

Hello,

sending log captured by minicom.
Attachments
MOI.log.tgz
(3 KiB) Downloaded 199 times
Last edited by destinqo2 on Mon Jul 22, 2013 3:07 pm, edited 2 times in total.
destinqo2
 
Posts: 8
Joined: Wed Jul 17, 2013 9:37 pm

Re: Can install/update software.

Postby gfi » Tue Jul 23, 2013 12:37 am

Put into MMC only rootfs (without other files (bk, kernel) from FW 1.1 (I don't know what kernel of FW You have loaded).

In Nand You have already kernel, backup kernel, backup of rootfs.
Today I check how will be working backup (reset button).

Also, please control every proccess over RS232.
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Can install/update software.

Postby destinqo2 » Tue Jul 23, 2013 1:47 pm

Hello,

i try only rootfs,no success. Looks like internal NAND is corrupted.

i can give you access to this device over ssh/minicom if you need it.
Attachments
MOI2.txt.tgz
(1.5 KiB) Downloaded 170 times
destinqo2
 
Posts: 8
Joined: Wed Jul 17, 2013 9:37 pm

Re: Can install/update software.

Postby gfi » Tue Jul 23, 2013 4:45 pm

NAND is NAND. All devices used NAND have Bad blocks, after some time. But normally are skipped on erase/write process.

There's something wrong with Your mmc card or rootfs (or uboots enviroment options).

size 0x50000000 (1342177280 Bytes) = 1280 MB !
I really don't know, why uboot trying write to non-exist partition of NAND (wrong offset, size).
NAND write: device 0 offset 0xc0000000, size 0x50000000
Input block length is not page aligned (of course !!!).

Have Your rootfs (MOI9200_fs.bin) normal size on mmc card? Try only FW1.2 AND ANOTHER MicroSD card.

My log (putty):

U-Boot 1.3.4 (Mar 7 2013 - 16:38:41) for MOI2900


CPU: S5PV210@1000MHz(OK)
APLL = 1000MHz, HclkMsys = 200MHz, PclkMsys = 100MHz
MPLL = 667MHz, EPLL = 80MHz
HclkDsys = 166MHz, PclkDsys = 83MHz
HclkPsys = 133MHz, PclkPsys = 66MHz
SCLKA2M = 200MHz
Serial = CLKUART
Board: MOI2900
I2C: i2c1_init GPD1CON
ready
DRAM: 512 MB
Flash: 8 MB
SD/MMC: 7600MB
NAND: 256 MB
*** Warning - using default environment



start normally!
MAC address: 00:22:ab:90:01:94
In: serial
Out: serial
Err: serial
checking mode for fastboot ...
Hit any key to stop autoboot: 0
Partition1: Start Address(0x131190), Size(0xd9e4c8)
reading MOI2900_k_bk.bin

** Unable to read "MOI2900_k_bk.bin" from mmc 0:1 **
Partition1: Start Address(0x131190), Size(0xd9e4c8)
reading MOI2900_fs_bk.bin

** Unable to read "MOI2900_fs_bk.bin" from mmc 0:1 **
Partition1: Start Address(0x131190), Size(0xd9e4c8)
reading MOI2900_k.bin

** Unable to read "MOI2900_k.bin" from mmc 0:1 **
Partition1: Start Address(0x131190), Size(0xd9e4c8)
reading MOI2900_fs.bin

44349888 bytes read

NAND erase: device 0 offset 0x50c0000, size 0xaf40000
Skipping bad block at 0x05320000
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x50c0000, size 0x2a4b9c0

Bad block at 0x5320000 in erase block from 0x5320000 will be skipped
Writing data at 0x79e3000 -- 100% complete.
44349888 bytes written: OK

NAND read: device 0 offset 0x48c0000, size 0x400000
Main area read (32 blocks):
4194304 bytes read: OK
Boot with zImage

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Welcome to Buildroot
buildroot login:

----------------------------------------------------------------------------
Thats mean, size of rootfs is 175MB (also 175MB are erased:
NAND erase: device 0 offset 0x50c0000, size 0xaf40000

Properly readed rootfs:
44349888 bytes read

Also properly assigned size of rootfs to write:
NAND write: device 0 offset 0x50c0000, size 0x2a4b9c0
(as You can see, I've bad block on address point of rootfs too - Bad block at 0x5320000 in erase block from 0x5320000 will be skipped)
And finally:
44349888 bytes written: OK
----------------------------------------------------------------------------

In your case:
You have correct value on read (maybe):
39580992 bytes read

Erase is ok:
NAND erase: device 0 offset 0x50c0000, size 0xaf40000

But on write process You have wrong offset and wrong size:
NAND write: device 0 offset 0xc0000000, size 0x50000000

So, as first, try to use another MicroSD card (something new, 8G etc.).
Also, please stop in terminal booting and type into getty/putty/minicom (what u using):
printenv

put result here.
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Can install/update software.

Postby gfi » Tue Jul 23, 2013 5:16 pm

You can try it manually:
(mmc need to be in MOI)

1. stop booting at start.

2. type:
fatload mmc 0:1 c0008000 MOI2900_fs.bin

3. after end of 2nd step type:
nand erase 50c0000 af40000

4. after end of 3th step type:
nand write.yaffs c0008000 50c0000 ${filesize}

if will be problem with ${filesize}, You can set Hex value of filesize (true size of Your MOI2900_fs.bin file).

!!! After update take out Your MMC card from MOI !!!

5. type:
reset
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Can install/update software.

Postby destinqo2 » Tue Jul 23, 2013 8:17 pm

Hello,

manual update works for me.

after that automatic update from 1.1 to 1.2 works except MOI2900_fs.bin

i do again manual command and this works.

what should i do, to make automatic update works, manual update works, but i must always remember that.

thank you for help. (now my MOI box has fw 1.2 and works).
Attachments
MOI-automatic-fw.1.2-except-fs.txt.gz
Automatic FS 1.2 - except FS this must be done manual
(4.65 KiB) Downloaded 168 times
MOI-manual-fs-fw.1.1.txt.gz
Manual FS - FW 1.1
(2.5 KiB) Downloaded 146 times
destinqo2
 
Posts: 8
Joined: Wed Jul 17, 2013 9:37 pm

Re: Can install/update software.

Postby gfi » Tue Jul 23, 2013 8:52 pm

destinqo2 Wrote:Hello,

manual update works for me.

after that automatic update from 1.1 to 1.2 works except MOI2900_fs.bin

i do again manual command and this works.

what should i do, to make automatic update works, manual update works, but i must always remember that.

thank you for help. (now my MOI box has fw 1.2 and works).

Ok,

Wrong enviroment option (please, read instruction attached with FW 1.0 - I can't find FW1.0, dns cache don't help me...).
You have:
updatekfs=nand erase 50c0000; nand write.yaffs c008000 50c0000000 ${filesize}

and need to be:
updatekfs=nand erase 50c0000;nand write.yaffs c0008000 50c0000 ${filesize}

Or quickly:
setenv updatekfs 'nand erase 50c0000;nand write.yaffs c0008000 50c0000 ${filesize}'

And after:
saveenv
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Can install/update software.

Postby destinqo2 » Tue Jul 23, 2013 9:21 pm

thank you, i use you setting:

setenv updatekfs "nand erase 50c0000;nand write.yaffs c0008000 50c0000 ${filesize}"

but it doesnt helps me.

OK

U-Boot 1.3.4 (Mar 7 2013 - 16:38:41) for MOI2900


CPU: S5PV210@1000MHz(OK)
APLL = 1000MHz, HclkMsys = 200MHz, PclkMsys = 100MHz
MPLL = 667MHz, EPLL = 80MHz
HclkDsys = 166MHz, PclkDsys = 83MHz
HclkPsys = 133MHz, PclkPsys = 66MHz
SCLKA2M = 200MHz
Serial = CLKUART
Board: MOI2900
I2C: i2c1_init GPD1CON
ready
DRAM: 512 MB
Flash: 8 MB
SD/MMC: Card init fail!
0 MB
NAND: 256 MB


start normally!
MAC address: 00:22:ab:90:01:05
In: serial
Out: serial
Err: serial
checking mode for fastboot ...
Hit any key to stop autoboot: 0
MMC init is failed.
MMC init is failed.
MMC init is failed.
MMC init is failed.

NAND read: device 0 offset 0x48c0000, size 0x400000
Main area read (32 blocks):
4194304 bytes read: OK
Boot with zImage

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Welcome to Buildroot
buildroot login: OK

U-Boot 1.3.4 (Mar 7 2013 - 16:38:41) for MOI2900


CPU: S5PV210@1000MHz(OK)
APLL = 1000MHz, HclkMsys = 200MHz, PclkMsys = 100MHz
MPLL = 667MHz, EPLL = 80MHz
HclkDsys = 166MHz, PclkDsys = 83MHz
HclkPsys = 133MHz, PclkPsys = 66MHz
SCLKA2M = 200MHz
Serial = CLKUART
Board: MOI2900
I2C: i2c1_init GPD1CON
ready
DRAM: 512 MB
Flash: 8 MB
SD/MMC: 942MB
NAND: 256 MB

MAC address: 00:22:ab:90:01:05
In: serial
Out: serial
Err: serial
checking mode for fastboot ...
Hit any key to stop autoboot: 0
Partition1: Start Address(0x87), Size(0x1d6fd9)
reading MOI2900_k_bk.bin

3610872 bytes read

NAND erase: device 0 offset 0xc0000, size 0x400000
Erasing at 0x4a0000 -- 100% complete.
OK

NAND write: device 0 offset 0xc0000, size 0x400000
Main area write (32 blocks):
4194304 bytes written: OK
Partition1: Start Address(0x87), Size(0x1d6fd9)
reading MOI2900_fs_bk.bin

52709184 bytes read

NAND erase: device 0 offset 0x8c0000, size 0x4000000
Skipping bad block at 0x01f60000
Erasing at 0x48a0000 -- 100% complete.
OK

NAND write: device 0 offset 0x8c0000, size 0x3244740

Bad block at 0x1f60000 in erase block from 0x1f60000 will be skipped
Writing data at 0x399e000 -- 100% complete.
52709184 bytes written: OK
Partition1: Start Address(0x87), Size(0x1d6fd9)
reading MOI2900_k.bin

3610872 bytes read

NAND erase: device 0 offset 0x48c0000, size 0x400000
Erasing at 0x4ca0000 -- 100% complete.
OK

NAND write: device 0 offset 0x48c0000, size 0x400000
Main area write (32 blocks):
4194304 bytes written: OK
Partition1: Start Address(0x87), Size(0x1d6fd9)
reading MOI2900_fs.bin

44345664 bytes read

NAND erase: device 0 offset 0x50c0000, size 0xaf40000
Skipping bad block at 0x052e0000
Skipping bad block at 0x05fc0000
Skipping bad block at 0x0b460000
Skipping bad block at 0x0c860000
Skipping bad block at 0x0f320000
Erasing at 0xffe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x50c0000, size 0xaf40000
Input block length is not page aligned
Data did not fit into device, due to bad blocks
183762944 bytes written: ERROR

NAND read: device 0 offset 0x48c0000, size 0x400000
Main area read (32 blocks):
4194304 bytes read: OK
Boot with zImage

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
OK

U-Boot 1.3.4 (Mar 7 2013 - 16:38:41) for MOI2900


CPU: S5PV210@1000MHz(OK)
APLL = 1000MHz, HclkMsys = 200MHz, PclkMsys = 100MHz
MPLL = 667MHz, EPLL = 80MHz
HclkDsys = 166MHz, PclkDsys = 83MHz
HclkPsys = 133MHz, PclkPsys = 66MHz
SCLKA2M = 200MHz
Serial = CLKUART
Board: MOI2900
I2C: i2c1_init GPD1CON
ready
DRAM: 512 MB
Flash: 8 MB
SD/MMC: 942MB
NAND: 256 MB


start normally!
MAC address: 00:22:ab:90:01:05
In: serial
Out: serial
Err: serial
checking mode for fastboot ...
Hit any key to stop autoboot: 0
MOI2900 # printenv
bootargs=console=ttySA0,115200 mem=512M root=/dev/mtdblock3 rootfstype=yaffs2 init=/linuxrc
bootcmd=run tbscmd
mtdpart=80000 400000 3000000
bootdelay=3
baudrate=115200
ipaddr=192.168.0.20
serverip=192.168.0.10
gatewayip=192.168.0.1
netmask=255.255.255.0
tbsledcmdk1=tbs_led on
tbsledcmdk2=tbs_led off
loadmmck_bk=fatload mmc 0:1 c0008000 MOI2900_k_bk.bin
loadmmck=fatload mmc 0:1 c0008000 MOI2900_k.bin
updatek=nand erase 48c0000 400000;nand write c0008000 48c0000 400000
updatek_bk=nand erase c0000 400000;nand write c0008000 c0000 400000
loadmmcfs=fatload mmc 0:1 c0008000 MOI2900_fs.bin
loadmmcfs_bk=fatload mmc 0:1 c0008000 MOI2900_fs_bk.bin
erasefs=nand erase 50c0000
updatekfs_bk=nand erase 8c0000 4000000;nand write.yaffs c0008000 8c0000 ${filesize}
tbscmdfs=if run loadmmcfs;then run tbsledcmdk1;run updatekfs;fi
tbscmdfs_bk=if run loadmmcfs_bk;then run tbsledcmdk1;run updatekfs_bk;fi
keeprun=setenv bootargs ${bootargs} ethaddr=${ethaddr}
tbscmdk=if run loadmmck;then run tbsledcmdk1;run updatek;fi
tbscmdk_bk=if run loadmmck_bk;then run tbsledcmdk1;run updatek_bk;else run keeprun;fi
tbscmd=run tbscmdk_bk;run tbscmdfs_bk;run tbscmdk;run tbscmdfs;run tbsledcmdk2;nand read c0008000 48c0000 400000;bootm c0008000
updatekfs=nand erase 50c0000;nand write.yaffs c0008000 50c0000
ethaddr=00:22:ab:90:01:05
destinqo2
 
Posts: 8
Joined: Wed Jul 17, 2013 9:37 pm

Next

Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest