Quote:
Originally Posted by Kralik
Does the Libre firmware file have its own mtd1, mtd2, etc?
|
Yes it does:
from AluratekBook-v0.15h.bin:
Code:
bin/
bin/run.sh
bin/run.sh~
data/
data/success.bin.gz
data/mtd064
data/E-Kernel
data/3.bin.gz
data/fail.bin.gz
data/checksum
data/JL09
data/2.bin.gz
data/nanddump
data/md5sum_32
data/gen-eroot.sh
data/1.bin.gz
data/mtd1
data/mtd032
data/fail_m218a.bin.gz
data/md5sum_64
data/E-Rootfs.tar.gz
data/mtd2
data/busybox
data/bootup.bin
data/ungen-eroot.sh
data/4.bin.gz
data/fail_sd.bin.gz
md5sum/
md5sum/md5sum
Quote:
Originally Posted by Kralik
Maybe if these (presumably the bootloaders) can be extracted, then a jetBook can be made to use the Libre firmware. Or at least with the archive opened, there should be some way to figure out why the flash fails. The upgrade.sh script does not appear to run when you use the self-test menu "Reflash NOR" setting. I tried quite a few modifications (including removing most of it so that it does nothing) and it still does the reflash as normal.
|
from Libre firmware
Code:
strings peripheral_self_test|grep reflash_nor
/mnt/sd1/reflash_nor/mtd1
/mnt/sd/reflash_nor/mtd1
/mnt/sd/reflash_nor/mtd2
/mnt/sd1/reflash_nor/mtd2
dd if=/mnt/sd1/reflash_nor/mtd1 of=/dev/mtdblock1
dd if=/mnt/sd/reflash_nor/mtd1 of=/dev/mtdblock1
/mnt/sd/reflash_nor/mtd032
/mnt/sd1/reflash_nor/mtd032
/mnt/sd/reflash_nor/mtd064
/mnt/sd1/reflash_nor/mtd064
gunzip -c /data/peripheral_test/confirm_reflash_nor.bin.gz 1> /dev/fb0
dd if=/mnt/sd/reflash_nor/mtd032 of=/dev/mtdblock0
dd if=/mnt/sd1/reflash_nor/mtd032 of=/dev/mtdblock0
dd if=/mnt/sd/reflash_nor/mtd2 of=/dev/mtdblock2
dd if=/mnt/sd1/reflash_nor/mtd2 of=/dev/mtdblock2
dd if=/mnt/sd1/reflash_nor/mtd064 of=/dev/mtdblock0
dd if=/mnt/sd/reflash_nor/mtd064 of=/dev/mtdblock0
JetBook one is similar, but not identical.
peripheral_self_test embeds some scripts inside to make it actually work(I think so).
It does all heavy lifting while reflashing.
strings from JetBook version
Code:
/lib/ld-uClibc.so.0
libgcc_s.so.1
malloc
__deregister_frame_info
strlen
_Jv_RegisterClasses
__register_frame_info
free
libc.so.0
putchar
ioctl
usleep
fscanf
memcpy
perror
puts
system
fprintf
fseek
strstr
strncmp
sscanf
fread
__uClibc_main
fopen
fclose
opendir
strcmp
sprintf
stat
fwrite
getline
__data_start
closedir
_edata
__bss_start
__bss_start__
__bss_end__
__end__
_end
_init
_fini
GCC_3.0
/dev/imx_keypad
can't open keypad device
gunzip -c /data/peripheral_test/wifi/%s.bin.gz 1> /dev/fb0
killall -9 udhcpc
/etc/wifi_conf
[ssid]=%s
[wep key]=%s
[number of ping]=%d
[max ping time]=%d
[min throughput]=%f
[min RSSI]=%d
[wget path]=%s
[host ip]=%s
[port]=%d
ret: %d
[ssid]=%s
[wep key]=%s
[number of ping]=%d
[max ping time]=%d
[min throughput]=%f
[min RSSI]=%d
[wget path]=%s
[host ip]=%s
[port]=%d
NULL
Invalid WEP key
fopen
insmod /gsl/nf/driver/gspi.ko
insmod /gsl/nf/driver/gspi8686.ko helper_name=/gsl/nf/FwImage/helper_gspi.bin fw_name=/gsl/nf/FwImage/gspi8686.bin
/gsl/nf/tool/iwpriv eth0 deauth
ifconfig eth0 down
rmmod /gsl/nf/driver/gspi8xxx
rmmod /gsl/nf/driver/gspi
/gsl/nf/tool/proc | grep "WIFI is Detected"
/gsl/nf/tool/iwlist eth0 scan | grep Address
/gsl/nf/tool/iwconfig eth0 mode managed
/gsl/nf/tool/iwconfig eth0 key %s
/gsl/nf/tool/iwconfig eth0 essid %s
/gsl/nf/tool/iwconfig eth0 key open
/gsl/nf/tool/proc_v1 | grep "Current BSS RSSI:" > /tmp/rssi
/tmp/rssi
Current BSS RSSI:%d
rssi : %d
udhcpc -n
/gsl/nf/tool/iwconfig eth0 power on
/gsl/nf/tool/iwconfig eth0 power off
ping -c %d %s > /tmp/ping_result
cat /tmp/ping_result | grep avg | cut -d "/" -f 4 > /tmp/ping_time
ping %s > /tmp/ping_result &
Continuous ping, press Escape to quit
ping_continuous
killall -SIGINT ping
ping_time: %f
rm -rf /tmp/ping_result /tmp/ping_time
downloading
wget -O /tmp/file_%d %stestfile_%d
download success
download_success
/gsl/nf/tool/iperf -c %s -p %d | grep "Mbits/sec" > /tmp/iperf_result
MBytes
MBytes %f Mbits/sec
throughput: %f
throughput test success
throughput_success
wifi_01
wifi_02
Download Test:
download
download test fail
download_fail
Throughput Test:
throughput
throughput test fail
throughput_fail
enable
scan
connect
rssi
dhcp
power_save
power_save_fail
ping_fail
disable
wifi_enable failed
enable_fail
Read config file fail
read_conf_fail
test connection fail
connect_fail
SPI test failed
spi_fail
scan AP failed
scan_fail
test rssi fail
rssi_fail
wifi_disable failed
dhcp fail
dhcp_fail
written
echo %d %s > /dev/tty0
echo %d > /proc/imxfb/contrast
echo %d > /proc/imxfb/flicker
gunzip -c /data/peripheral_test/CrossTalk1.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/Frame.bin.gz 1> /dev/fb0
/dev/mtd0
default NorFlash Type
NorFlash type : Macronix
open file error
clear > /dev/tty0
insmod /drivers/softcursor.ko
insmod /drivers/fbcon_ud.ko
insmod /drivers/fbcon_cw.ko
insmod /drivers/fbcon_ccw.ko
insmod /drivers/fbcon_rotate.ko
insmod /drivers/bitblit.ko
insmod /drivers/font.ko
insmod /drivers/fbcon.ko
echo 1 > /proc/fbcon/fbcon_disable
03c00000
02400000
0a400000
08b00000
07500000
/tmp/m6size
cd /tmp/mtd7 ; du -a | wc -l | tr -d ' ' > /tmp/filecount
cd /mnt/sd/Data/mtd7 ; du -a | wc -l | tr -d ' ' >> /tmp/filecount
cd /mnt/sd1/Data/mtd7 ; du -a | wc -l | tr -d ' ' >> /tmp/filecount
no. of files in mtd%d ok
cd /mnt/flash ; du -a | wc -l | tr -d ' ' > /tmp/filecount
cd /mnt/sd/Data/mtd6 ; du -a | wc -l | tr -d ' ' >> /tmp/filecount
cd /mnt/sd1/Data/mtd6 ; du -a | wc -l | tr -d ' ' >> /tmp/filecount
no. of files in mtd%d lesser than expected
gunzip -c /data/peripheral_test/cross.bin.gz 1> /dev/fb0
dd if=/dev/mtd5 of=/tmp/x skip=1046528 bs=1 count=32
/tmp/x
nanddump -o -b -l 1048576 -f /tmp/dumpfile /dev/mtd6
md5sum /tmp/dumpfile > /tmp/mtd6md5sum
rm -rf /tmp/dumpfile
/tmp/mtd6md5sum
nanddump -o -b -l 1048576 -f /tmp/dumpfile /dev/mtd7
md5sum /tmp/dumpfile > /tmp/mtd7md5sum
/tmp/mtd7md5sum
/tmp/mm
dd if=/tmp/mm of=/dev/mtdblock5 seek=2044
NO SD CARD
gunzip -c /data/peripheral_test/confirm_restore_default.bin.gz 1> /dev/fb0
ls /sys/block/mmcblk0 >/tmp/sdtest || echo "NO SD CARD" >/tmp/sdtest
/tmp/sdtest
rm -rf /tmp/sdtest
gunzip -c /data/peripheral_test/restore_default.bin.gz 1> /dev/fb0
/mnt/sd/Data/mtd6
/mnt/sd1/Data/mtd6
gunzip -c /data/peripheral_test/mtd6_formatting.bin.gz 1> /dev/fb0
rmmod g_file_storage
umount /mnt/flash
losetup -d /dev/loop0
umount /nf
flash_eraseall /dev/mtd6
mount -t yaffs2 /dev/mtdblock6 /nf
cd /nf
Formating file system...
cd /nf; tar -xzf /data/disk1
cd /nf; tar -xzf /data/disk3
cd /nf; tar -xzf /data/disk4
cd /nf; tar -xzf /data/disk5
Unable to detect size of mtd6, using default 36 MB
cd /nf; tar -xzf /data/disk2
losetup -o 4096 /dev/loop0 /nf/disk
mount -t vfat -o iocharset=utf8,shortname=winnt /dev/loop0 /mnt/flash/
gunzip -c /data/peripheral_test/mtd6_updating.bin.gz 1> /dev/fb0
cp -rf /mnt/sd/Data/mtd6/* /mnt/flash/
cp -rf /mnt/sd1/Data/mtd6/* /mnt/flash/
sync
insmod /drivers/g_file_storage.ko file=/nf/disk removable=1
/mnt/sd/Data/mtd7
/mnt/sd1/Data/mtd7
gunzip -c /data/peripheral_test/mtd7_formatting.bin.gz 1> /dev/fb0
umount /dev/mtdblock7
flash_eraseall /dev/mtd7
mkdir /tmp/mtd7
mount -t yaffs2 /dev/mtdblock7 /tmp/mtd7
gunzip -c /data/peripheral_test/mtd7_updating.bin.gz 1> /dev/fb0
cp -rf /mnt/sd/Data/mtd7/* /tmp/mtd7/
cp -rf /mnt/sd1/Data/mtd7/* /tmp/mtd7/
/mnt/sd1/Data
gunzip -c /data/peripheral_test/restore_default_finished.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/no_mtd6_mtd7_finished.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/no_mtd7_finished.bin.gz 1> /dev/fb0
/mnt/sd/Data
grep Pro /proc/cpuinfo | cut -f1 > /tmp/cpuinfo
grep Pro /proc/cpuinfo | tr -d ' ' | cut -f2 -d ':' >> /tmp/cpuinfo
echo -e >> /tmp/cpuinfo
grep MIPS /proc/cpuinfo | cut -f1 >> /tmp/cpuinfo
grep MIPS /proc/cpuinfo | tr -d ' ' | cut -f2 -d ':' >> /tmp/cpuinfo
grep MemTotal /proc/meminfo | cut -f1 -d ':' > /tmp/meminfo
grep MemTotal /proc/meminfo | tr -d ' ' | cut -f2 -d ':' >> /tmp/meminfo
echo -e >> /tmp/meminfo
grep MemFree /proc/meminfo | cut -f1 -d ':' >> /tmp/meminfo
grep MemFree /proc/meminfo | tr -d ' ' | cut -f2 -d ':' >> /tmp/meminfo
uname -r > /tmp/uname
/bin/nor_check_md5
md5sum /tmp/dumpfile_all | cut -d ' ' -f1 | cut -c 1-16 > /tmp/nor_md5sum
echo -e >> /tmp/nor_md5sum
md5sum /tmp/dumpfile_all | cut -d ' ' -f1 | cut -c 17-32 >> /tmp/nor_md5sum
mkdir /tmp/mtd2
mount -t squashfs /dev/mtdblock2 /tmp/mtd2/
echo 0 > /proc/fbcon/fbcon_disable
head /tmp/cpuinfo > /dev/tty0
echo > /dev/tty0
head /tmp/meminfo > /dev/tty0
echo uname > /dev/tty0
head /tmp/uname > /dev/tty0
echo "Software version" > /dev/tty0
head /etc/release-ebook > /dev/tty0
echo "NOR version" > /dev/tty0
head /tmp/mtd2/etc/release-ebook > /dev/tty0
echo "NOR checksum" > /dev/tty0
head /tmp/nor_md5sum > /dev/tty0
rm -rf /tmp/cpuinfo
rm -rf /tmp/meminfo
rm -rf /tmp/uname
umount /tmp/mtd2
rm -rf /tmp/mtd2
/etc/lcd_conf
[contrast]=%d
[flicker]=%d
rw_lcd_conf w
gunzip -c /data/peripheral_test/test01_h.bin.gz 1> /dev/fb0
unable to load default values
The stored contrast value: %d
The stored flicker value has error, using default value %d
The stored contrast value has error, using default value %d
The stored flicker value: %d
gunzip -c /data/peripheral_test/Flicker.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/scale.bin.gz 1> /dev/fb0
/proc/cmdline
mem=
mem=%dM
Total Ram: %d
gunzip -c /data/peripheral_test/test2a_h.bin.gz 1> /dev/fb0
Ram test fail at %d Bytes!
rm -rf /tmp/test1 /tmp/test2
rm -rf /tmp/test1 /tmp/test2 && touch /tmp/test1 && touch /tmp/test2
/tmp/test1
/dev/urandom
Creating test file: %d Bytes
/tmp/test2
Reading test file: %d KBytes
cmp /tmp/test1 /tmp/test2
match %d
Ram test pass at %d KBytes! %d
gunzip -c /data/peripheral_test/tick.bin.gz 1> /dev/fb0
OF2 error
gunzip -c /data/peripheral_test/test3a_h.bin.gz 1> /dev/fb0
rm -rf /test1 /test2 && touch /test1 /test2
Reading test file: %d Bytes
cmp /test1 /test2
Nand Flash pass %d Bytes test!
rm -rf /test1 /test2
gunzip -c /data/peripheral_test/test3b_h.bin.gz 1> /dev/fb0
Nand Flash fail %d Bytes test!
gunzip -c /data/peripheral_test/test3c_h.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/default.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/24.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/23.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/22.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/21.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/20.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/19.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/18.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/17.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/16.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/15.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/14.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/13.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/12.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/11.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/10.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/9.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/8.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/7.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/6.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/5.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/4.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/3.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/2.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/key_test/1.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/sd1.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/sd_detected.bin.gz 1> /dev/fb0
/sys/block/mmcblk0/mmcblk0p1/
cp /data/test.bin /mnt/sd/test.bin
cp /mnt/sd/test.bin /data/test1.bin
md5sum /mnt/sd/test.bin /data/test1.bin > /tmp/checksum
rm -rf /data/test1.bin
rm -rf /mnt/sd/test.bin
SD Test failed
gunzip -c /data/peripheral_test/sd1_failed.bin.gz 1> /dev/fb0
rm -rf /tmp/checksum
gunzip -c /data/peripheral_test/sd_notinserted.bin.gz 1> /dev/fb0
cp /data/test.bin /mnt/sd1/test.bin
cp /mnt/sd1/test.bin /data/test1.bin
md5sum /mnt/sd1/test.bin /data/test1.bin > /tmp/checksum
rm -rf /mnt/sd1/test.bin
SD Test passed
gunzip -c /data/peripheral_test/sd1_success.bin.gz 1> /dev/fb0
unable to load checksum file
sdtestprogram&
killall -9 sdtestprogram
gunzip -c /data/peripheral_test/menu_sd01.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu_sd02.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/test6.bin.gz 1> /dev/fb0
/dev/pwm
Play tone file...
colsing handle
Press Escape to Quit...
cannot open file pwm
ACCESS
gunzip -c /data/peripheral_test/test8.bin.gz 1> /dev/fb0
Please plug the USB cable within 30 seconds
inotifywait -t 30 -f -r /nf/disk | tr -d ' ' | cut -f2 -d ',' 1> /tmp/usbtest
/tmp/usbtest
gunzip -c /data/peripheral_test/usb_notinserted.bin.gz 1> /dev/fb0
rm -rf /tmp/usbtest
gunzip -c /data/peripheral_test/usb_detected.bin.gz 1> /dev/fb0
USB connection detected, Please copy "usb.bin" from the computer to the device now
Press Enter (S9) when finish
Syncronizing file system...
Remounting...
complete
cp /mnt/flash/usb.bin /dev/fb0
rm -rf /mnt/flash/usb.bin
gunzip -c /data/peripheral_test/serial_num_write.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/serial_usb_detected.bin.gz 1> /dev/fb0
USB connection detected, Please copy program "serial.txt" from the computer to the device now
mount -t vfat -o iocharset=utf8 /dev/loop0 /mnt/flash/
chmod 777 /mnt/flash/serial.txt
gunzip -c /data/peripheral_test/serial_failed.bin.gz 1> /dev/fb0
/bin/serial_write /mnt/flash/serial.txt
gunzip -c /data/peripheral_test/serial_successful.bin.gz 1> /dev/fb0
rm -f /mnt/flash/serial.txt
gunzip -c /data/peripheral_test/invalid.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/test7.bin.gz 1> /dev/fb0
cannot open file sound
in 3
gunzip -c /data/peripheral_test/100hz.bin.gz 1> /dev/fb0
mpg123 -a /dev/dsp /data/100Hz.mp3
gunzip -c /data/peripheral_test/1khz.bin.gz 1> /dev/fb0
mpg123 -a /dev/dsp /data/1kHz.mp3
/dev/battery
gunzip -c /data/peripheral_test/bl1.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/bl5.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/bl4.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/bl3.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/bl2.bin.gz 1> /dev/fb0
Unable to detect battery level
gunzip -c /data/peripheral_test/bl_unable.bin.gz 1> /dev/fb0
cannot open file battery
gunzip -c /data/peripheral_test/power01.bin.gz 1> /dev/fb0
echo 40000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
gunzip -c /data/peripheral_test/power02.bin.gz 1> /dev/fb0
echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
echo 40000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
gunzip -c /data/peripheral_test/menu_power01.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu_power02.bin.gz 1> /dev/fb0
Power Save Mode
Full Speed Mode
lsmod
insmod /drivers/current_controller.ko
echo 1 > /sys/devices/platform/imx-fb.0/graphics\:fb0/blank
echo standby > /sys/power/state
echo 0 > /sys/devices/platform/imx-fb.0/graphics\:fb0/blank
rmmod current_controller
echo 5 > /proc/csb536fs/volume
gunzip -c /data/peripheral_test/menu_sox01.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu_sox02.bin.gz 1> /dev/fb0
cp /data/wave/44K1_1K.WAV.gz /tmp
cd /tmp ; gunzip 44K1_1K.WAV.gz
loop_sox /tmp/44K1_1K.WAV -t ossdsp /dev/dsp &
killall -9 loop_sox
killall -9 sox
cp /data/wave/44K1_100.WAV.gz /tmp
cd /tmp ; gunzip 44K1_100.WAV.gz
loop_sox /tmp/44K1_100.WAV -t ossdsp /dev/dsp &
gunzip -c /data/peripheral_test/burnin_menu01.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/burnin_menu02.bin.gz 1> /dev/fb0
/etc/freq_change.sh&
burn_in&
killall -9 freq_change.sh
killall -9 memtester
killall burn_in
wifi_disable
No Freq
input error!!!
Freq
malloc
gunzip -c /data/peripheral_test/checksum.bin.gz 1> /dev/fb0
nanddump -o -b -l 1048576 -f /tmp/dumpfile /dev/mtd3
md5sum /tmp/dumpfile > /tmp/mtd3md5sum
nanddump -o -b -l 1048576 -f /tmp/dumpfile /dev/mtd4
md5sum /tmp/dumpfile > /tmp/mtd4md5sum
/tmp/mtd3md5sum
/tmp/mtd4md5sum
m3:%s
m4:%s
nanddump -o -b -l 1 -f /tmp/x /dev/mtd5
checksum from record:%s
checksum current:%s
rm -rf /tmp/mtd3md5sum
rm -rf /tmp/mtd4md5sum
fbv /data/peripheral_test/nand_mtd3_tick.jpg
fbv -g 390 /data/peripheral_test/nand_mtd4_cross.jpg
fbv -g 390 /data/peripheral_test/nand_mtd4_tick.jpg
fbv /data/peripheral_test/nand_mtd3_cross.jpg
m6:%s
m7:%s
rm -rf /tmp/mtd6md5sum
rm -rf /tmp/mtd7md5sum
fbv /data/peripheral_test/nand_mtd6_tick.jpg
fbv -g 390 /data/peripheral_test/nand_mtd7_cross.jpg
fbv -g 390 /data/peripheral_test/nand_mtd7_tick.jpg
fbv /data/peripheral_test/nand_mtd6_cross.jpg
Testing Mtd 6
rm -rf /nf/*
Writing
gunzip -c /data/peripheral_test/writing6.bin.gz 1> /dev/fb0
cd /nf; tar -xzf /data/five1
cd /nf; tar -xzf /data/five3
cd /nf; tar -xzf /data/five4
cd /nf; tar -xzf /data/five5
cd /nf; tar -xzf /data/five2
md5sum /nf/mm > /tmp/checksum
/data/fivemd5_1
/data/fivemd5_3
/data/fivemd5_4
/data/fivemd5_5
/data/fivemd5_2
USB Partition Test failed
USB Partition Test passed
gunzip -c /data/peripheral_test/usb_success.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/usb_failed.bin.gz 1> /dev/fb0
/mnt/sd1/reflash_nor/mtd1
/mnt/sd1/reflash_nor/mtd2
/mnt/sd/reflash_nor/mtd2_spansion
dd if=/mnt/sd/reflash_nor/mtd1 of=/dev/mtdblock1
dd if=/mnt/sd1/reflash_nor/mtd1 of=/dev/mtdblock1
dd if=/mnt/sd/reflash_nor/mtd2 of=/dev/mtdblock2
dd if=/mnt/sd/reflash_nor/mtd2_spansion of=/dev/mtdblock2
gunzip -c /data/peripheral_test/reflash_NOR_success.bin.gz 1> /dev/fb0
/mnt/sd/reflash_nor/mtd1
/mnt/sd/reflash_nor/mtd2
gunzip -c /data/peripheral_test/missing.bin.gz 1> /dev/fb0
/mnt/sd/reflash_nor/mtd032
/mnt/sd1/reflash_nor/mtd032
Unable to detect Ram Size, using default value
/mnt/sd/reflash_nor/mtd064
/mnt/sd1/reflash_nor/mtd064
gunzip -c /data/peripheral_test/confirm_reflash_nor.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/reflash_NOR.bin.gz 1> /dev/fb0
dd if=/mnt/sd/reflash_nor/mtd032 of=/dev/mtdblock0
dd if=/mnt/sd1/reflash_nor/mtd032 of=/dev/mtdblock0
dd if=/mnt/sd/reflash_nor/mtd064 of=/dev/mtdblock0
dd if=/mnt/sd1/reflash_nor/mtd064 of=/dev/mtdblock0
mkdir -p /tmp/mtd2
mount -t squashfs /dev/mtdblock2 /tmp/mtd2
cp -f /tmp/mtd2/etc/release-ebook /tmp/mtd2-cur-ver
dd if=/dev/mtdblock2 of=/tmp/mtd2-cur
dd if=/mnt/sd1/reflash_nor/mtd2 of=/dev/mtdblock2
cp -f /tmp/mtd2/etc/release-ebook /tmp/mtd2-new-ver
test `cat /tmp/mtd2-new-ver | cut -c 7-8` -lt 13 && echo > /tmp/ver-failed
/tmp/ver-failed
The new version less than Patch13!
dd if=/tmp/mtd2-cur of=/dev/mtdblock2
version is OK
md5sum -c /tmp/check_nor.md5
gunzip -c /data/peripheral_test/smc_menu01.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/smc_menu04.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/smc_menu03.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/smc_menu02.bin.gz 1> /dev/fb0
SD Ram
Go back to Main Menu
NAND Flash Checksum
NOR Flash Checksum
gunzip -c /data/peripheral_test/menu01.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu02.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu03.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu04.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu05.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu06.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu07.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu08.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu09.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu10.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu11.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu12.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu13.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu14.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu15.bin.gz 1> /dev/fb0
gunzip -c /data/peripheral_test/menu16.bin.gz 1> /dev/fb0
Info
wifi test
Serial Number
Simple Memory check
Reflash NOR
NAND flash R/W Test for whole partition
Burn in test
Standby Mode
Power mode
Restored Default values
USB Test
Battery Level Test
SD test
key test
selftest
cmdline enter
echo -e "\033[9;0]" > /dev/tty0
echo -e "\033[?25l" > /dev/tty0
echo 0 > /proc/NAND/blue
echo 1 > /proc/led/blue
sox /data/wave/1kHz_44k1_3sec.wav -t ossdsp /dev/dsp
echo 0 > /proc/led/blue
echo 1 > /proc/NAND/blue
cat /proc/mtd | grep mtd6 | cut -d ' ' -f 2 > /tmp/m6size
/sys/block/mmcblk0/mmcblk0p1
/sys/block/mmcblk0
gunzip -c /data/peripheral_test/finish_selftest.bin.gz 1> /dev/fb0
mount /mnt/sd
mount /mnt/sd1