All pastes #414585 Raw Edit

Unnamed

public text v1 · immutable
#414585 ·published 2007-03-29 03:20 UTC
rendered paste body
$ ./slugimage.pl -u -i slugosle-4.3-beta-nslu2.bin
Read 2 blocks into <RedBoot>
Read 0x00006 bytes into <EthAddr>
Read 1 blocks into <SysConf>
Read 8 blocks into <Kernel>
Read 0x1FFF0 bytes into <Ramdisk>
Read 51 blocks into <Flashdisk>
Read 1 blocks into <FIS directory>
Read 0x02EBC bytes into <Microcode>
Read 0x00010 bytes into <Trailer>
Wrote 0x00040000 bytes from <RedBoot> into "RedBoot"
Wrote 0x00020000 bytes from <SysConf> into "SysConf"
Wrote 0x000FE0C4 bytes from <Kernel> into "vmlinuz"
Wrote 0x0001FFF0 bytes from <Ramdisk> into "ramdisk.gz"
Wrote 0x00660000 bytes from <Flashdisk> into "Flashdisk"
Wrote 0x00002EBC bytes from <Microcode> into "NPE-B"
Wrote 0x00000010 bytes from <Trailer> into "Trailer"



$ ./slugimage.pl -p -o slugos-newapex.bin -b RedBoot -s SysConf -L apex-slugos-nslu2-arm-1.4.17.bin -k vmlinuz -r Flashdisk:Flashdisk -t Trailer
Read 0x00040000 bytes from "RedBoot" into <RedBoot> (2 blocks / 2 blocks)
Read 0x00020000 bytes from "SysConf" into <SysConf> (1 blocks / 1 blocks)
Read 0x0000ACC0 bytes from "apex-slugos-nslu2-arm-1.4.17.bin" into <Loader> (1 blocks / 1 blocks)
Read 0x000FE0C4 bytes from "vmlinuz" into <Kernel> (8 blocks / 8 blocks)
Read 0x00660000 bytes from "Flashdisk" into <Flashdisk> (51 blocks / 51 blocks)
Read 0x00002EBC bytes from "NPE-B" into <Microcode> (0x02ECC bytes / 0x03000 bytes)
Read 0x00000010 bytes from "Trailer" into <Trailer> (0x00010 bytes / 0x00010 bytes)
Wrote  2 blocks (0x00000000 to 0x00040000) from <RedBoot> into "slugos-newapex.bin"
Wrote  1 blocks (0x00040000 to 0x00060000) from <SysConf> into "slugos-newapex.bin"
Wrote  1 blocks (0x00060000 to 0x00080000) from <Loader> into "slugos-newapex.bin"
Wrote  8 blocks (0x00080000 to 0x00180000) from <Kernel> into "slugos-newapex.bin"
Wrote 51 blocks (0x00180000 to 0x007E0000) from <Flashdisk> into "slugos-newapex.bin"
Wrote  1 blocks (0x007E0000 to 0x00800000) from <FIS directory> into "slugos-newapex.bin"
Wrote 0x03000 bytes (0x007FC000 to 0x007FF000) from <Microcode> into "slugos-newapex.bin"
Wrote 0x00010 bytes (0x007FFFF0 to 0x00800000) from <Trailer> into "slugos-newapex.bin"


RedBoot> ip_address -h 10.54.89.223 -l 10.54.89.227
IP: 10.54.89.227/255.255.255.0, Gateway: 192.168.0.1
Default server: 10.54.89.223, DNS server IP: 0.0.0.0
RedBoot>
RedBoot> load -r -v -b 0x01000000 -h 10.54.89.223 slugos-newapex.bin
Using default protocol (TFTP)
/
Raw file loaded 0x01000000-0x017fffff, assumed entry at 0x01000000
RedBoot> cksum
Computing cksum for area 0x01000000-0x01800000
POSIX cksum = 3463465373 8388608 (0xce70499d 0x00800000)
RedBoot> fis write -f 0x50060000 -b 0x01060000 -l 0x7a0000
* CAUTION * about to program FLASH
            at 0x50060000..0x507fffff from 0x01060000 - continue (y/n)? y
... Erase from 0x50060000-0x50800000: .............................................................
RedBoot> reset
... Resetting.+Ethernet eth0: MAC address 00:0f:66:7b:fe:f1
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
^C
RedBoot>
RedBoot> reset
... Resetting.+Ethernet eth0: MAC address 00:0f:66:7b:fe:f1
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> boot;exec 0x01d00000
have eRcOmM
copy kernel code from flash to RAM
copy ramdisk file from flash to RAM
run kernel
Using base address 0x01d00000 and length 0x0000acc0
A

APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xacc0   (44224 bytes)
  env  => nor:0x7f8000+16k        (empty)

Use the command 'help help' to get started.

# copy -s $kernelsrc $bootaddr
# copy -s fis://kernel 0x00008000
1048544 bytes transferred
# copy $ramdisksrc $ramdiskaddr
0 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
apex> printenv
fis-drv *= nor:0x7e0000+4k
cmdline *= root=/dev/mtdblock4 rootfstype=jffs2 console=ttyS0,115200
bootaddr *= 0x00008000
kernelsrc *= fis://kernel
startup *= copy -s $kernelsrc $bootaddr; copy $ramdisksrc $ramdiskaddr; wait 10 Type ^C key to cancel autoboot.; boot
apex>
apex> setenv cmdline"root=/dev/mtdblock4 rootfstype=jffs2 console=ttyS0,115200 mem=256M"
Unrecognized variable
apex> setenv cmdline"root=/dev/mtdblock4 rootfstype=jffs2 console=ttyS0,115200 mem=256M"
Unrecognized variable
apex> setenv cmdline "root=/dev/mtdblock4 rootfstype=jffs2 console=ttyS0,115200
mem=256M"
apex>
apex>
apex> printenv
fis-drv *= nor:0x7e0000+4k
cmdline = root=/dev/mtdblock4 rootfstype=jffs2 console=ttyS0,115200 mem=256M
bootaddr *= 0x00008000
kernelsrc *= fis://kernel
startup *= copy -s $kernelsrc $bootaddr; copy $ramdisksrc $ramdiskaddr; wait 10 Type ^C key to cancel autoboot.; boot
apex> printenv
fis-drv *= nor:0x7e0000+4k
cmdline = root=/dev/mtdblock4 rootfstype=jffs2 console=ttyS0,115200 mem=256M
bootaddr *= 0x00008000
kernelsrc *= fis://kernel
startup *= copy -s $kernelsrc $bootaddr; copy $ramdisksrc $ramdiskaddr; wait 10 Type ^C key to cancel autoboot.; boot
apex> reboot
apex> reset
Performing watchdog reset
+Ethernet eth0: MAC address 00:0f:66:7b:fe:f1
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> boot;exec 0x01d00000
have eRcOmM
copy kernel code from flash to RAM
copy ramdisk file from flash to RAM
run kernel
Using base address 0x01d00000 and length 0x0000acc0
A

APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xacc0   (44224 bytes)
  env  => nor:0x7f8000+16k        (in-use)

Use the command 'help help' to get started.

# copy -s $kernelsrc $bootaddr
# copy -s fis://kernel 0x00008000
1048544 bytes transferred
# copy $ramdisksrc $ramdiskaddr
0 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
# boot
ATAG_HEADER
ATAG_MEM: start 0x00000000  size 0x02000000
ATAG_CMDLINE: (67 bytes) 'root=/dev/mtdblock4 rootfstype=jffs2 console=ttyS0,115200 mem=256M'
ATAG_END
Booting kernel at 0x00008000...
Uncompressing Linux...................................................................... done, booting the kernel.
+Ethernet eth0: MAC address 00:0f:66:7b:fe:f1
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
^C
RedBoot> reset
... Resetting.+Ethernet eth0: MAC address 00:0f:66:7b:fe:f1
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> boot;exec 0x01d00000
have eRcOmM
copy kernel code from flash to RAM
copy ramdisk file from flash to RAM
run kernel
Using base address 0x01d00000 and length 0x0000acc0
A

APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xacc0   (44224 bytes)
  env  => nor:0x7f8000+16k        (in-use)

Use the command 'help help' to get started.

# copy -s $kernelsrc $bootaddr
# copy -s fis://kernel 0x00008000
1048544 bytes transferred
# copy $ramdisksrc $ramdiskaddr
0 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
apex>