how to use fatload uEnv.txt & script.bin & kernel uImage
all file on github:
file:linux-bananapi-bpi-m3-kernel3_1.2.8_armhf.deb:
how to use fatload uEnv.txt & script.bin & kernel uImage
step 1: dpkg -i linux-bananapi-bpi-m3-kernel3_1.2.8_armhf.deb
step 2: bpi-bootsel /usr/lib/u-boot/bananapi/bpi-m3/BPI_M3_720P.img.gz
step 3: mkdir -p /boot/bananapi/bpi-m3
step 4: cp -a /usr/lib/u-boot/bananapi/bpi-m3/linux /boot/bananapi/bpi-m3
step 5: cd /boot/bananapi/bpi-m3/linux ; vi uEnv.txt (if you want to change)
step 6: reboot
1
[email protected]:/media/bpi/BPI-BOOT/bananapi/bpi-m3/linux# ls -l
2
total 5648
3
-rw-r--r-- 1 bpi bpi 55408 2月 23 14:27 script.bin
4
-rw-r--r-- 1 bpi bpi 2013 2月 25 08:39 uEnv.txt
5
-rw-r--r-- 1 bpi bpi 5718480 2月 24 10:53 uImage
6
7
# cat uEnv.txt
8
bpi=bananapi
9
board=bpi-m3
10
chip=a83t
11
service=linux
12
#kernel=kernel_bpi-m3_aufs.img
13
#kernel=boot.fex
14
kernel=uImage
15
scrip=script.bin
16
17
ahello=echo Banaan Pi ${board} chip: $chip Service: $service
18
19
aboot=if fatload $device $partition 0x43100000 ${bpi}/berryboot.img; then bootm 0x48000000 0x43100000; else bootm 0x48000000; fi
20
aload_script=fatload $device $partition 0x43000000 ${bpi}/${board}/${service}/${script}
21
aload_kernel=fatload $device $partition 0x48000000 ${bpi}/${board}/${service}/${kernel}
Copied!
uenvcmd=run ahello aload_script aload_kernel aboot
1
#
2
# from sys_config.fex
3
#
4
#;output_type (0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
5
#;output_mode (used for tv/hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50 5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60 11:pal 14:ntsc)
6
#
7
8
# ref. sys_config.fex, use default script.bin
9
bootargs=enforcing=1 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootwait init=/init vmalloc=384M ion_cma_list="120m,176m,512m" loglevel=8 bootmenutimeout=10 datadev=mmcblk0p2
10
11
# output HDMI 1080P (type:3 mode:10)
12
#bootargs=enforcing=1 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootwait init=/init vmalloc=384M ion_cma_list="120m,176m,512m" loglevel=8 bootmenutimeout=10 datadev=mmcblk0p2 disp.screen0_output_type=3 disp.screen0_output_mode=10 disp.screen1_output_type=3 disp.screen1_output_mode=10
13
14
# output HDMI 720P (type:3 mode:5)
15
#bootargs=enforcing=1 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootwait init=/init vmalloc=384M ion_cma_list="120m,176m,512m" loglevel=8 bootmenutimeout=10 datadev=mmcblk0p2 disp.screen0_output_type=3 disp.screen0_output_mode=5 disp.screen1_output_type=3 disp.screen1_output_mode=5
16
17
# output HDMI 480P (type:3 mode:2)
18
#bootargs=enforcing=1 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootwait init=/init vmalloc=384M ion_cma_list="120m,176m,512m" loglevel=8 bootmenutimeout=10 datadev=mmcblk0p2 disp.screen0_output_type=3 disp.screen0_output_mode=2 disp.screen1_output_type=3 disp.screen1_output_mode=2
Copied!
how to check output video mode:
1
[email protected]:~# dmesg | grep DISP
2
[ 0.670049] [DISP]disp_module_init
3
[ 0.670431] [DISP]parser_disp_init_para: screen0_output_type(3)
4
[ 0.670472] [DISP]parser_disp_init_para: screen0_output_mode(10) value(10)
5
[ 0.670503] [DISP]parser_disp_init_para: screen1_output_type(3)
6
[ 0.670533] [DISP]parser_disp_init_para: screen1_output_mode(10) value(10)
7
[ 0.731031] [DISP] Fb_map_kernel_logo,line:895:Fb_map_kernel_logo failed!
8
[ 0.797416] [DISP]disp_module_init finish
9
[ 7.840077] [DISP] disp_device_attached_and_enable,line:159:attched ok, mgr0<
10
-->device1, type=4, mode=10
11
[ 31.112875] [DISP] disp_ioctl,line:1480:para err in disp_ioctl, cmd = 0x0,scr
12
een id = 65536
Copied!
how to boot with SATA rootfs:
1
# vi uEnv.txt
2
# ref. sys_config.fex, use default script.bin
3
bootargs=enforcing=1 console=ttyS0,115200 console=tty1 root=/dev/sda2 rootwait init=/init vmalloc=384M ion_cma_list="120m,176m,512m" loglevel=8 bootmenutimeout=10 datadev=sda2
4
5
how to boot with USB DISK rootfs:
6
# vi uEnv.txt
7
# ref. sys_config.fex, use default script.bin
8
bootargs=enforcing=1 console=ttyS0,115200 console=tty1 root=/dev/sdb2 rootwait init=/init vmalloc=384M ion_cma_list="120m,176m,512m" loglevel=8 bootmenutimeout=10 datadev=sdb2
Copied!
for berryboot env. use only: bootmenutimeout=XXX datadev=XXX
how to check bananapi's packages:
1
[email protected]:~# dpkg -l | grep bananapi
2
ii bananapi-bpi-tools 1.0.1
3
armhf Banaan Pi: tools
4
ii linux-bananapi-bpi-m2-kernel3 1.2
5
armhf Banaan Pi BPI-M2: linux kernel 3.3 image & modules
6
ii linux-bananapi-bpi-m3-kernel3 1.2.6
7
armhf Banaan Pi BPI-M3: linux kernel 3.4 image & modules
8
ii linux-firmware-bananapi-bpi-wifi 1.0
9
armhf Banaan Pi: linux kernel firmware for wifi ap6181 & ap6212
Copied!
demo video:
Last modified 1yr ago
Copy link