]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
config: bk4: Update u-boot envs to support NOR memories initial setup
authorLukasz Majewski <lukma@denx.de>
Wed, 13 Feb 2019 21:46:55 +0000 (22:46 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 13 Apr 2019 18:30:08 +0000 (20:30 +0200)
Signed-off-by: Lukasz Majewski <lukma@denx.de>
include/configs/bk4r1.h

index 7bd3411ff26a2ca1f9abb05c3fd5422848bf04a3..05ebb7d9c5cf44a9bcc52275ca5221de6c42a6eb 100644 (file)
                "ubi create rootfs2 15E15000 d; " \
                "ubi create userdata; " \
                "ubi detach\0" \
+       "setup_nor1=" BK4_NET_INIT \
+               "if tftp ${sys_addr} ${tftpdir}ubinor1.img; " \
+               "then sf probe 0:0; " \
+               "sf erase 0 01000000; " \
+               "mtdparts default; " \
+               "ubi part nor; " \
+               "ubi create nor1fs; " \
+               "ubi write ${sys_addr} nor1fs ${filesize}; " \
+               "ubi detach; fi\0" \
+       "setup_nor2=" BK4_NET_INIT \
+               "if tftp ${sys_addr} ${tftpdir}ubinor2.img; " \
+               "then sf probe 0:1; " \
+               "sf erase 0 01000000; " \
+               "mtdparts default; " \
+               "ubi part nor; " \
+               "ubi create nor2fs; " \
+               "ubi write ${sys_addr} nor2fs ${filesize}; " \
+               "ubi detach; fi\0" \
        "prepare_install_bk4r1_envs=" \
                "echo 'Preparing envs for SD card recovery!';" \
                "setenv ipaddr 192.168.0.99;" \