Programowanie sektora z komendami ENV 01 2011



Komendy do zaprogramowania przez Hyperterminal sektora z danymi ENV,
kiedy klasycznie uBoot nie zapisuje tych komend:


- loady

- protect off A0240000 A024ffff

- erase A0240000 A024ffff

- cp.b 84000000 A0240000 10000

- md A0240000

- crc32 A0240004 7FFC



Tak wygląda zapis logu ,
i tak musi wyglądać kiedy się programuje ten sektor z ENV:



Board: NBox BSKA&BSLA (MB442) [29-bit mode]


U-Boot 1.3.1 (Nov 19 2010 - 10:59:28) - stm23_0052

DRAM: 128 MiB
NOR: 4 MiB
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
** Bad partition 1 **
## Booting image at a7000000 ...
Bad Magic Number
NBOX> go A0280000
## Starting application at 0xA0280000 ...


Board: STb7100-Reference (MB442) [29-bit mode]


U-Boot 1.3.1 (Oct 30 2010 - 17:43:59) - stm24_0047

DRAM: 128 MiB
NOR: 4 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
MB442 niebieski20> loady
## Ready for binary (ymodem) download to 0x84000000 at 115200 bps...
CCxyzModem - CRC mode, 3(SOH)/64(STX)/0(CAN) packets, 4 retries
## Total Size = 0x0001001f = 65567 Bytes
MB442 niebieski20> protect off A0240000 A024ffff
. done
Un-Protected 1 sectors
MB442 niebieski20> erase A0240000 A024ffff

. done
Erased 1 sectors
MB442 niebieski20> cp.b 84000000 A0240000 10000
Copy to Flash
.... done
MB442 niebieski20> md A0240000
a0240000: ea2bb051 746f6f62 616c6564 00343d79 Q.+.bootdelay=4.
a0240010: 64756162 65746172 3531313d 00303032 baudrate=115200.
a0240020: 72616f62 626d3d64 5f323434 6d003732 board=mb442_27.m
a0240030: 74696e6f 625f726f 3d657361 30417830 onitor_base=0xA0
a0240040: 30303030 6d003030 74696e6f 6c5f726f 000000.monitor_l
a0240050: 303d6e65 30303078 30303034 6f6d0030 en=0x00040000.mo
a0240060: 6f74696e 65735f72 3a313d63 00332d30 nitor_sec=1:0-3.
a0240070: 64616f6c 6464615f 78303d72 30303438 load_addr=0x8400
a0240080: 30303030 706e7500 3d746f72 746f7270 0000.unprot=prot
a0240090: 20746365 2066666f 6e6f6d24 726f7469 ect off $monitor
a02400a0: 6365735f 64707500 3d657461 73617265 _sec.update=eras
a02400b0: 6d242065 74696e6f 735f726f 633b6365 e $monitor_sec;c
a02400c0: 20622e70 616f6c24 64615f64 24207264 p.b $load_addr $
a02400d0: 696e6f6d 5f726f74 65736162 6f6d2420 monitor_base $mo
a02400e0: 6f74696e 656c5f72 72703b6e 6365746f nitor_len;protec
a02400f0: 6e6f2074 6f6d2420 6f74696e 65735f72 t on $monitor_se
MB442 niebieski20> crc32 A0240004 7FFC
CRC32 for a0240004 ... a0247fff ==> ea2bb051
MB442 niebieski20>










Wyszukiwarka

Podobne podstrony:
Programowanie zjazd VIII 15 01 2011
komendy programowania 01 2011
22 01 2011 TEST B PSYCHOLOGIA S2id)467
22 01 2011 TEST A 1id)464
31 01 2011 analiza
Profilaktyka uzalenien w szkole (03 01 2011)
Matura biologia 2011 Próbna matura z 12 01 2011 Arkusz klucz ARKUSZE
numer 3 01 2011
egzamin ekzp2 31 01 2011

więcej podobnych podstron