U-Boot Test Plan
From Openmoko
Test Scope
To test U-Boot functionality
Test Duration
60 minutes
Test Environment
1. Neo FreeRunner
2. FIC GTA02 battery
3. microSD card
4. Linux host
5. Debug Board v3
6. USB cable
Test Cases
Test Case #1
- Log in Openmoko Image directly
Press and hold Power button for few seconds
X turns up
Test Case #2
- Log in U-Boot through NAND Flash
Press and hold Power button, then press and hold AUX button
BOOT MENU turns up
Test Case #3
- Access U-Boot through usbtty in NAND Flash
Press and hold Power button, then press and hold AUX button
BOOT MENU turns up
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./neocon -t 30 /dev/ttyACM{0,1,2}
U-Boot prompt turns up
GTA02v5 #
Test Case #4
- Log in Openmoko Image through NAND Flash U-Boot
Press and hold Power button, then press and hold AUX button
BOOT MENU turns up and select Boot
X turns up
Test Case #5
- Flashing kernel in NAND Flash through NAND U-Boot
Press and hold Power button, then press and hold AUX button
BOOT MENU turns up
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./dfu-util -a kernel -R -D uImage-neo1973-latest.bin
When flashing succeed
status(0) = No error condition is present Done!
Test Case #6
- Flashing root filesystem in NAND Flash through NAND U-Boot
Press and hold Power button, then press and hold AUX button
BOOT MENU turns up
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2
When flashing succeed
status(0) = No error condition is present Done!
Test Case #7
- Flashing U-Boot in NAND Flash through NAND U-Boot
Press and hold Power button, then press and hold AUX button
BOOT MENU turns up
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./dfu-util -a u-boot -R -D uboot-gta02v5-latest.bin
When flashing succeed
status(0) = No error condition is present Done!
Test Case #8
- Log in U-Boot through NOR Flash
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up
Test Case #9
- Log in Openmoko Image through NOR Flash U-Boot
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Boot
X turns up
Test Case #10
- Boot from microSD through NOR Flash
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Boot from microSD (FAT+ext2)
X turns up
Test Case #11
- Set console to USB through NOR Flash
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Set console to USB
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./neocon -t 30 /dev/ttyACM{0,1,2}
U-Boot prompt turns up
GTA02v5 #
Test Case #12
- Set console to serial through NOR Flash
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Set console to serial
Connect Neo FreeRunner to Linux host via Debug Board v3
Key in the command in the terminal of Linux host
./neocon /dev/ttyUSB1
U-Boot prompt turns up
GTA02v5 #
Test Case #13
- Reboot through NOR Flash
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Reboot
Load U-Boot from NAND Flash and boot into X
Test Case #14
- Power off through NOR Flash
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Power off
Neo FreeRunner is shutdown
Test Case #15
- Flashing kernel in NAND Flash through NOR U-Boot
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Set console to USB
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./dfu-util -a kernel -R -D uImage-neo1973-latest.bin
When flashing succeed
status(0) = No error condition is present Done!
Test Case #16
- Flashing root filesystem in NAND Flash through NAND U-Boot
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Set console to USB
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./dfu-util -a rootfs -R -D openmoko-devel-image-fic-gta02.jffs2
When flashing succeed
status(0) = No error condition is present Done!
Test Case #17
- Flashing U-Boot in NAND Flash through NOR U-Boot
Press and hold AUX button, then press and hold Power button
Release AUX button
BOOT MENU turns up and select Set console to USB
Connect Neo FreeRunner to Linux host via USB cable
Key in the command in the terminal of Linux host
./dfu-util -a u-boot -R -D uboot-gta02v5-latest.bin
When flashing succeed
status(0) = No error condition is present Done!
Test Case #18
- Flashing U-Boot in NOR Flash
Connect Neo FreeRunner to Linux host via Debug Board v3
Connect Neo FreeRunner to Linux host via USB cable
Log in Openmoko Image directly
Copy flashnor.sh and nor-gta02v5.bin to Neo FreeRunner
Key in the command in the terminal of Linux host
ifconfig usb0 192.168.0.200 netmask 255.255.255.0
scp ./flashnor.sh root@192.168.23.202:/home/root
scp ./nor-gta02v5.bin root@192.168.23.202:/home/root
Connect Neo FreeRunner via SSH
ssh root@192.168.0.202
Press Enter to pass the password authentication and execute flashnor.sh
root@fic-gta02:~# ./flashnor.sh nor-gta02v5.bin 1+0 records in 1+0 records out 1+0 records in 1+0 records out Erase Total 13 Units Region 0 is at 0 of 8 sector and with sector size 2000 Region 1 is at 65536 of 31 sector and with sector size 10000 Performing Flash Erase of length 8192 at offset 0xe000 Moving to region 1 Performing Flash Erase of length 65536 at offset 0x50000 done 1+0 records in 1+0 records out
You can log in U-Boot through NOR Flash


