-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathu-boot.script
27 lines (23 loc) · 862 Bytes
/
u-boot.script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# uboot script
# in this uboot version, fpgadata variable does not exist
# in the environment. So make it urself
echo ------ ENV -------
setenv bootimage zImage;
setenv fdtimage soc_system.dtb;
setenv mmcboot 'setenv bootargs mem=1024M console=ttyS0,115200 root=${mmcroot} rw rootfstype=ext3 rootwait; bootz ${kernel_addr_r} - ${fdt_addr_r}';
setenv mmcload 'mmc rescan; ${mmcloadcmd} mmc 0:${mmcloadpart} ${kernel_addr_r} ${bootimage}; ${mmcloadcmd} mmc 0:${mmcloadpart} ${fdt_addr_r} ${fdtimage}'
setenv mmcloadcmd fatload
setenv mmcloadpart 1
setenv mmcroot /dev/mmcblk0p2
echo ------ Programming FPGA ------
fpgadata=0x2000000
rbf=LinuxDemo.rbf
led=0xFF200010
fatload mmc 0:1 $fpgadata $rbf
fpga load 0 $fpgadata $filesize
bridge enable
echo ------ Turning on LEDs ------
mw.w $led 0x55 1
echo ------- Booting Linux -------
run mmcload;
run mmcboot;