Bootloader schreiben
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
Bootloader schreiben
Hi,
ist es irgendwie möglich, die 128k Datei zu flashen? Wie genau muss ich vorgehen?
ist es irgendwie möglich, die 128k Datei zu flashen? Wie genau muss ich vorgehen?
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Senior Member
- Beiträge: 1544
- Registriert: Freitag 12. Oktober 2001, 00:00
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Senior Member
- Beiträge: 1544
- Registriert: Freitag 12. Oktober 2001, 00:00
So genau erklären kann ich das auch nicht. Ich habe allerdings schon mal nach dem Howto den Debug disabled. Da stehen die Speicherstellen ja drin. Nur wie Du den Bootloader von der Platte ins Ram bekommst weiß ich auch nicht. Und ob man einfach so einen anderen Bootloader draufmachen kann weiß ich auch nicht.
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
=> help
autoscr - run script from memory
base - print or set address offset
bdinfo - print Board Info structure
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bootd - boot default, i.e., run 'bootcmd'
cmp - memory compare
coninfo - print console devices and informations
cp - memory copy
crc32 - checksum calculation
echo - echo args to console
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
fsload - load binary file from a filesystem image
fsinfo - print information about filesystems
ls - list files in a directory (default /)
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nm - memory modify (constant address)
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
tftpboot- boot image via network using TFTP protocol
and env variables ipaddr and serverip
version - print monitor version
? - alias for 'help'
=> cp 10000000 01000000 2000
=> nm 01001110
01001110: 00200008 ? 38600008
01001110: 38600008 ? => <INTERRUPT>
=> nm 01001130
01001130: 40007858 ? 48007858
01001130: 48007858 ? => <INTERRUPT>
=> nm 01001200
01001200: 0090f000 ? 7c9ff000
01001200: 7c9ff000 ? => <INTERRUPT>
=> nm 01001210
01001210: 0090ffff ? 3bffffff
01001210: 3bffffff ? => <INTERRUPT>
=> nm 01001220
01001220: 0000ffff ? 3009ffff
01001220: 3009ffff ? => <INTERRUPT>
=> nm 01001f00
01001f00: 28843fb4 ? 38843fb4
01001f00: 38843fb4 ? => <INTERRUPT>
=>unprotect 10000000 2000
=>cp 01000000 10000000 2000
vor dem unprotect müßtest du den schreibschutz mit pin12 deaktivieren
aber nu laß mich wenigstens noch eben erklären was du da machst
so, jetzt hab ich mal das ganze noch an deine philipsboxausgaben angepaßt
autoscr - run script from memory
base - print or set address offset
bdinfo - print Board Info structure
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bootd - boot default, i.e., run 'bootcmd'
cmp - memory compare
coninfo - print console devices and informations
cp - memory copy
crc32 - checksum calculation
echo - echo args to console
erase - erase FLASH memory
flinfo - print FLASH memory information
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
fsload - load binary file from a filesystem image
fsinfo - print information about filesystems
ls - list files in a directory (default /)
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nm - memory modify (constant address)
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
sleep - delay execution for some time
tftpboot- boot image via network using TFTP protocol
and env variables ipaddr and serverip
version - print monitor version
? - alias for 'help'
=> cp 10000000 01000000 2000
=> nm 01001110
01001110: 00200008 ? 38600008
01001110: 38600008 ? => <INTERRUPT>
=> nm 01001130
01001130: 40007858 ? 48007858
01001130: 48007858 ? => <INTERRUPT>
=> nm 01001200
01001200: 0090f000 ? 7c9ff000
01001200: 7c9ff000 ? => <INTERRUPT>
=> nm 01001210
01001210: 0090ffff ? 3bffffff
01001210: 3bffffff ? => <INTERRUPT>
=> nm 01001220
01001220: 0000ffff ? 3009ffff
01001220: 3009ffff ? => <INTERRUPT>
=> nm 01001f00
01001f00: 28843fb4 ? 38843fb4
01001f00: 38843fb4 ? => <INTERRUPT>
=>unprotect 10000000 2000
=>cp 01000000 10000000 2000
vor dem unprotect müßtest du den schreibschutz mit pin12 deaktivieren

aber nu laß mich wenigstens noch eben erklären was du da machst

so, jetzt hab ich mal das ganze noch an deine philipsboxausgaben angepaßt
Zuletzt geändert von SoLaLa am Sonntag 25. August 2002, 21:06, insgesamt 1-mal geändert.
never change a running system
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
oki, das ppcboot116 (<---das ist wichtig, mit dem ppcboot064 klappt zwar das disablen des debugmodus, aber beim kompletten bootloader hatte ich hier mal schwierigkeiten, wollte nicht gleich klappen, erst nach viel mühe und tippselei, mit dem 116 gehts aber bestens) brichst mit der enter taste ab, dann kriegst den prompt =>
mit "=> cp 10000000 01000000 2000 " werden die ersten 2000 byte ins ram kopiert. jetzt wollen wir ja nur n paar dieser byte wieder auf den ursprünglichen stand zurückbringen.
"=> nm 01001110 " mußt du per tastatur eingeben, damit werden dir 8 byte ab adresse 01001110 angezeigt mit nem fragezeichen dahinter für ne neue eingabe, das sieht dann so aus:
01001110: 00200008 ?
und nach dem fragezeichen tippst wieder per tastatur die RICHTIGEN 8 byte ein, nämlich 38600008
daraufhin bekommst wieder die bytes angezeigt mit
01001110: 38600008 ?
dann drückst du 2 mal <strg> und "c" um das verändern dieser 8 byte abzuschließen.
weiter zum nächsten byte mit
"nm 01001130"
.
.
.
und am ende wenn du alle falschen byte geändert hast, dann müßte es bei dir genauso aussehen wie im oberen posting. dann unprotecten (die ersten 2 sektoren, das sind in hex 2000 byte) und genau die 2000 byte wieder ins flash kopieren
mit "=> cp 10000000 01000000 2000 " werden die ersten 2000 byte ins ram kopiert. jetzt wollen wir ja nur n paar dieser byte wieder auf den ursprünglichen stand zurückbringen.
"=> nm 01001110 " mußt du per tastatur eingeben, damit werden dir 8 byte ab adresse 01001110 angezeigt mit nem fragezeichen dahinter für ne neue eingabe, das sieht dann so aus:
01001110: 00200008 ?
und nach dem fragezeichen tippst wieder per tastatur die RICHTIGEN 8 byte ein, nämlich 38600008
daraufhin bekommst wieder die bytes angezeigt mit
01001110: 38600008 ?
dann drückst du 2 mal <strg> und "c" um das verändern dieser 8 byte abzuschließen.
weiter zum nächsten byte mit
"nm 01001130"
.
.
.
und am ende wenn du alle falschen byte geändert hast, dann müßte es bei dir genauso aussehen wie im oberen posting. dann unprotecten (die ersten 2 sektoren, das sind in hex 2000 byte) und genau die 2000 byte wieder ins flash kopieren
Zuletzt geändert von SoLaLa am Montag 23. September 2002, 23:10, insgesamt 1-mal geändert.
never change a running system
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
dbox2-ppcboot> nm 01001f00
01001f00: 28843fb4 ? 38843fb4
01001f00: 38843fb4 ?
dbox2-ppcboot> unprotect 10000000 2000
Unknown command 'unprotect' - try 'help'
dbox2-ppcboot> protect off 10000000 2000
Usage:
protect - enable or disable FLASH write protection
dbox2-ppcboot> protect disable 10000000 2000
Usage:
protect - enable or disable FLASH write protection
dbox2-ppcboot> protect off 10000000 2000
Usage:
protect - enable or disable FLASH write protection
dbox2-ppcboot>
01001f00: 28843fb4 ? 38843fb4
01001f00: 38843fb4 ?
dbox2-ppcboot> unprotect 10000000 2000
Unknown command 'unprotect' - try 'help'
dbox2-ppcboot> protect off 10000000 2000
Usage:
protect - enable or disable FLASH write protection
dbox2-ppcboot> protect disable 10000000 2000
Usage:
protect - enable or disable FLASH write protection
dbox2-ppcboot> protect off 10000000 2000
Usage:
protect - enable or disable FLASH write protection
dbox2-ppcboot>
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Tuxboxer
- Beiträge: 6119
- Registriert: Mittwoch 3. April 2002, 00:32
-
- Semiprofi
- Beiträge: 1293
- Registriert: Montag 21. Januar 2002, 23:27