OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 1... Line 1...
1 # The U-Boot loader of the some Allnet devices requires image sizes and 1 # The U-Boot loader of the some Allnet devices requires image sizes and
2 # checksums to be provided in the U-Boot environment. 2 # checksums to be provided in the U-Boot environment.
3 # In case the check fails during boot, a failsafe-system is started to provide 3 # In case the check fails during boot, a failsafe-system is started to provide
4 # a minimal web-interface for flashing a new firmware. 4 # a minimal web-interface for flashing a new firmware.
Line -... Line 5...
-   5  
-   6 # make sure we got uboot-envtools and fw_env.config copied over to the ramfs
-   7 # create /var/lock for the lock "fw_setenv.lock" of fw_setenv
-   8 platform_add_ramfs_ubootenv() {
-   9 [ -e /usr/sbin/fw_printenv ] && install_bin /usr/sbin/fw_printenv /usr/sbin/fw_setenv
-   10 [ -e /etc/fw_env.config ] && install_file /etc/fw_env.config
-   11 mkdir -p $RAM_ROOT/var/lock
-   12 }
-   13 append sysupgrade_pre_upgrade platform_add_ramfs_ubootenv
5   14  
6 # determine size of the main firmware partition 15 # determine size of the main firmware partition
7 platform_get_firmware_size() { 16 platform_get_firmware_size() {
8 local dev size erasesize name 17 local dev size erasesize name
9 while read dev size erasesize name; do 18 while read dev size erasesize name; do
Line 142... Line 151...
142 rootfs_start_addr $rootfs_hexaddr 151 rootfs_start_addr $rootfs_hexaddr
143 rootfs_size $rootfs_hexsize 152 rootfs_size $rootfs_hexsize
144 rootfs_checksum $rootfs_md5 153 rootfs_checksum $rootfs_md5
145 bootcmd bootm $vmlinux_hexaddr 154 bootcmd bootm $vmlinux_hexaddr
146 EOF 155 EOF
147   -  
148 mkdir -p /var/lock -  
149 fw_setenv -s /tmp/fw_env_upgrade || { 156 fw_setenv -s /tmp/fw_env_upgrade || {
150 echo "failed to update U-Boot environment" 157 echo "failed to update U-Boot environment"
151 return 1 158 return 1
152 } 159 }
153 shift 160 shift