-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello,

On 10/16/2012 08:03 PM, John Clark wrote:
> 
> Thanks for the URL. I fixed up my code set. which allows for building a 
> kernel and ramdisk. However, a couple of items.
> 
> 1) the "build" process always seems to ask about a WATCHDOG timer driver.

If you dont need a watchdog, you need to disable the drive.r

> 2) The built kernel crashes right after processing the initramfs image.

Sry i forget to give you these two bash lines. You need to run them in
the trunk directory.

./build_dir/host/u-boot-2011.12/tools/mkimage -A ppc -O linux -T ramdisk
- -C none -a 0x2d000000 -e 0x2d000000 -d
./bin/mpc85xx/openwrt-mpc85xx-rootfs.cpio.gz
/[path]/[to]/[somewhere]/openwrt-mpc85xx-rootfs-uImage

cp -vf ./bin/mpc85xx/openwrt-mpc85xx-rootfs.cpio.gz
/[path]/[to]/[somewhere]/openwrt-mpc85xx-rootfs-initrd


These are the commands to flash the uboot over TFTP an boot the image.

==== U-Boot Bootloader ====

In most cases when you download an image over TFTP you the the filesize
in HEX in the variable: "$filesize"

For the most updates, you dont need to change the FDT file.

=== Boot over TFTP ===

  * setenv gatewayip 10.26.254.16
  * setenv netmask 255.255.0.0
  * setenv ipaddr 10.26.1.6
  * setenv serverip 10.26.254.16
  * setenv fdtfile stage1/openwrt-mpc85xx-p1020wlan.fdt
  * setenv bootfile stage1/openwrt-mpc85xx-uImage
  * setenv initfile stage1/openwrt-mpc85xx-rootfs-uImage
  * setenv fdtaddr  0c00000
  * setenv loadaddr 1000000
  * setenv initaddr 2000000

  * tftp $fdtaddr $fdtfile;
  * tftp $loadaddr $bootfile;
  * tftp $initaddr $initfile

  * setenv bootargs rw console=$consoledev,$baudrate $otherbootargs
  * bootm $loadaddr $initaddr $fdtaddr

=== Flash over TFTP: with Initramfs ===

  * bdinfo -> flashstart
     * kernel = flashstart + 0x0 + 0x00400000= 0xEC000000
     * initfile: flashstart + 0x00400000 + 0x01b00000
     * fdt: ab 0x0eff40000
  * setenv fdtfile stage1/openwrt-mpc85xx-p1020wlan.fdt
  * setenv bootfile stage1/openwrt-mpc85xx-uImage
  * setenv initfile stage1/openwrt-mpc85xx-rootfs-uImage
  * protect off all
  * tftp $loadaddr $bootfile;
  * erase 0xEC000000 +0400000
  * cp.b $loadaddr 0xEC000000 <Hex length of the image>
  * tftp $initaddr $initfile
  * erase 0xEC400000 +0x01b00000
  * cp.b $loadaddr 0xEC400000 <Hex length of the image>
  * tftp $fdtaddr $fdtfile;
  * erase eff40000 + <Hex length of the image>
  * cp.b $fdtaddr eff40000 <Hex length of the image>
  * setenv bootargs rw console=$consoledev,$baudrate $otherbootargs
  * bootm 0xEC000000 0xEC400000 eff40000

=== Flash over TFTP: with Jffs2 ===

  * bdinfo -> flashstart
     * kernel = flashstart + 0x0 = 0xEC000000
       * length: 0x400000
     * jffs2  = flashstart + X = 0xEE400000 , Länge 0x01b00000
     * fdt: flash start addr: 0x0eff40000
  * setenv fdtfile stage1/openwrt-mpc85xx-p1020wlan.fdt
  * setenv bootfile stage1/openwrt-mpc85xx-uImage
  * setenv initfile stage1/root.jffs2-128k
  * protect off all
  * tftp $loadaddr $bootfile;
  * erase 0xEC000000 +0400000
  * cp.b $loadaddr 0xEC000000 <Hex length of the image>
  * tftp $initaddr $initfile
  * erase 0xEE400000  +0x01b00000
  * cp.b $initaddr 0xEE400000  <Hex length of the image>
  * tftp $fdtaddr $fdtfile;
  * erase eff40000 + <Hex length of the image>
  * cp.b $fdtaddr eff40000 <Hex length of the image>
  * setenv bootargs rw console=$consoledev,$baudrate $otherbootargs
rootfstype=jffs2
  * bootm 0xEC000000 - eff40000

=== Boot from Image ===
  * setenv bootdelay 3
  * setenv hostname femap1_X
  * setenv bootcmd "bootm 0xEC000000 0xEC400000 eff40000"
  * saveenv


Greetings,

Rainer S.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAlB9sdQACgkQsD/BjTdkA1dZBwD8Ch53lSwtdOJmP/x/6bfL8Fjd
gCnKl285G01QL1tg+ZMA/1p0wKi8Yi76CxjYfAqyY+4nWaEbLzuxMoJ33ndtt3uT
=MOgn
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to