mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Fix for RUTX platform
This commit is contained in:
parent
ccdb64ad45
commit
59bc57d5d5
7254 changed files with 1810270 additions and 7 deletions
|
@ -0,0 +1,31 @@
|
|||
These scripts are needed for our development usecases. Copy this directory
|
||||
into your tftp root directory to be able to use this scripts.
|
||||
cp -r <u-boot-repo>/board/keymile/scripts <your_tftp_root>/
|
||||
|
||||
To load and configure these usecase, two environment variables in the u-boot
|
||||
default environment must be parsed:
|
||||
run develop : setup environment to configure for rootfs via nfs
|
||||
run ramfs : setup environment to configure for rootfs in ram
|
||||
|
||||
Last change: 24.11.2011
|
||||
|
||||
develop-common.txt
|
||||
============================
|
||||
This file defines variables for working with rootfs via nfs for powerpc and
|
||||
arm.
|
||||
|
||||
develop-<arch>.txt
|
||||
============================
|
||||
This file defines architecture specific variables for working with rootfs via
|
||||
nfs arm.
|
||||
|
||||
|
||||
ramfs-common.txt
|
||||
============================
|
||||
This file defines variables for working with rootfs inside the ram for powerpc
|
||||
and arm.
|
||||
|
||||
ramfs-<arch>.txt
|
||||
============================
|
||||
This file defines architecture specific variables for working with rootfs inside
|
||||
ram.
|
|
@ -0,0 +1,2 @@
|
|||
setup_debug_env=tftpboot 0x200000 scripts/develop-common.txt && env import -t 0x200000 ${filesize} && run configure
|
||||
tftpfdt=true
|
|
@ -0,0 +1,8 @@
|
|||
altbootcmd=run ${subbootcmds}
|
||||
bootcmd=run ${subbootcmds}
|
||||
configure=km_setboardid && saveenv && reset
|
||||
subbootcmds=tftpfdt tftpkernel nfsargs add_default boot
|
||||
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${toolchain}/${arch}
|
||||
tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage
|
||||
toolchain=/opt/eldk
|
||||
rootfssize=0
|
|
@ -0,0 +1,2 @@
|
|||
setup_debug_env=tftpboot 0x200000 scripts/develop-common.txt && env import -t 0x200000 ${filesize} && run configure
|
||||
tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb
|
|
@ -0,0 +1,2 @@
|
|||
setup_debug_env=tftpboot 0x200000 scripts/develop-common.txt && env import -t 0x200000 ${filesize} && run configure
|
||||
tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb
|
|
@ -0,0 +1,2 @@
|
|||
setup_debug_env=tftpboot 0x200000 scripts/ramfs-common.txt && env import -t 0x200000 ${filesize} && run configure
|
||||
tftpfdt=true
|
|
@ -0,0 +1,11 @@
|
|||
addramfs=setenv bootargs "${bootargs} phram.phram=rootfs${boot_bank},${rootfsaddr},${rootfssize}"
|
||||
actual_bank=-1
|
||||
altbootcmd=run ${subbootcmds}
|
||||
bootcmd=run ${subbootcmds}
|
||||
subbootcmds=tftpfdt tftpkernel setrootfsaddr tftpramfs flashargs add_default addpanic addramfs boot
|
||||
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
|
||||
configure=km_setboardid && saveenv && reset
|
||||
rootfsfile=${hostname}/rootfsImage
|
||||
setrootfsaddr=setexpr value ${pnvramaddr} - ${rootfssize} && setenv rootfsaddr 0x${value}
|
||||
tftpkernel=tftpboot ${load_addr_r} ${hostname}/uImage
|
||||
tftpramfs=tftpboot ${rootfsaddr} ${hostname}/rootfsImage
|
|
@ -0,0 +1,2 @@
|
|||
setup_debug_env=tftpboot 0x200000 scripts/ramfs-common.txt && env import -t 0x200000 ${filesize} && run configure
|
||||
tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb
|
|
@ -0,0 +1,2 @@
|
|||
setup_debug_env=tftpboot 0x200000 scripts/ramfs-common.txt && env import -t 0x200000 ${filesize} && run configure
|
||||
tftpfdt=tftpboot ${fdt_addr_r} ${hostname}/${hostname}.dtb
|
Loading…
Add table
Add a link
Reference in a new issue