diff --git a/binaries/sie_rootfs_files/etc/init.d/start b/binaries/sie_rootfs_files/etc/init.d/start new file mode 100755 index 0000000..fd99990 --- /dev/null +++ b/binaries/sie_rootfs_files/etc/init.d/start @@ -0,0 +1,5 @@ +#!/bin/sh +/usr/bin/xc3sprog /root/binaries/ADC.bit & +/usr/bin/sgen -f 1000 & +/root/binaries/ADC -qws -nomouse & + diff --git a/binaries/sie_rootfs_files/etc/inittab b/binaries/sie_rootfs_files/etc/inittab new file mode 100644 index 0000000..3a3ae8f --- /dev/null +++ b/binaries/sie_rootfs_files/etc/inittab @@ -0,0 +1,8 @@ +::sysinit:/etc/init.d/rcS S boot +::shutdown:/etc/init.d/rcS K stop +tts/0::askfirst:/bin/ash --login +#ttyS0::askfirst:/bin/ash --login +tty1::askfirst:/bin/ash --login +tty2::askfirst:/bin/ash --login +tty3::askfirst:/bin/ash --login +tty4::askfirst:/bin/ash --login diff --git a/binaries/ADC b/binaries/sie_rootfs_files/root/binaries/ADC similarity index 100% rename from binaries/ADC rename to binaries/sie_rootfs_files/root/binaries/ADC diff --git a/binaries/ADC.bit b/binaries/sie_rootfs_files/root/binaries/ADC.bit similarity index 100% rename from binaries/ADC.bit rename to binaries/sie_rootfs_files/root/binaries/ADC.bit diff --git a/binaries/blink.bit b/binaries/sie_rootfs_files/root/binaries/blink.bit similarity index 100% rename from binaries/blink.bit rename to binaries/sie_rootfs_files/root/binaries/blink.bit diff --git a/binaries/blinker.ko b/binaries/sie_rootfs_files/root/binaries/blinker.ko similarity index 100% rename from binaries/blinker.ko rename to binaries/sie_rootfs_files/root/binaries/blinker.ko diff --git a/binaries/devlist.txt b/binaries/sie_rootfs_files/root/binaries/devlist.txt similarity index 100% rename from binaries/devlist.txt rename to binaries/sie_rootfs_files/root/binaries/devlist.txt diff --git a/binaries/enable_rx b/binaries/sie_rootfs_files/root/binaries/enable_rx similarity index 100% rename from binaries/enable_rx rename to binaries/sie_rootfs_files/root/binaries/enable_rx diff --git a/binaries/sie_rootfs_files/root/binaries/flash_kernel.sh b/binaries/sie_rootfs_files/root/binaries/flash_kernel.sh new file mode 100755 index 0000000..055c50e --- /dev/null +++ b/binaries/sie_rootfs_files/root/binaries/flash_kernel.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sudo usbboot -f ./usbboot_2gb_nand.cfg -c "boot" +sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nprog 1024 openwrt-xburst-qi_lb60-uImage.bin 0 0 -n" diff --git a/binaries/inittab b/binaries/sie_rootfs_files/root/binaries/inittab similarity index 100% rename from binaries/inittab rename to binaries/sie_rootfs_files/root/binaries/inittab diff --git a/binaries/install_binaries b/binaries/sie_rootfs_files/root/binaries/install_binaries similarity index 100% rename from binaries/install_binaries rename to binaries/sie_rootfs_files/root/binaries/install_binaries diff --git a/binaries/irq.ko b/binaries/sie_rootfs_files/root/binaries/irq.ko similarity index 100% rename from binaries/irq.ko rename to binaries/sie_rootfs_files/root/binaries/irq.ko diff --git a/binaries/irq_main b/binaries/sie_rootfs_files/root/binaries/irq_main similarity index 100% rename from binaries/irq_main rename to binaries/sie_rootfs_files/root/binaries/irq_main diff --git a/binaries/jz_init_sram b/binaries/sie_rootfs_files/root/binaries/jz_init_sram similarity index 100% rename from binaries/jz_init_sram rename to binaries/sie_rootfs_files/root/binaries/jz_init_sram diff --git a/binaries/jz_test_gpio b/binaries/sie_rootfs_files/root/binaries/jz_test_gpio similarity index 100% rename from binaries/jz_test_gpio rename to binaries/sie_rootfs_files/root/binaries/jz_test_gpio diff --git a/binaries/sie_rootfs_files/root/binaries/load_u-boot.sh b/binaries/sie_rootfs_files/root/binaries/load_u-boot.sh new file mode 100755 index 0000000..daa40c1 --- /dev/null +++ b/binaries/sie_rootfs_files/root/binaries/load_u-boot.sh @@ -0,0 +1,2 @@ +sudo usbboot -f ./usbboot_2gb_nand.cfg -c "boot" +sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nprog 0 openwrt-xburst-qi_lb60-u-boot.bin 0 0 -n" diff --git a/binaries/plasma.bit b/binaries/sie_rootfs_files/root/binaries/plasma.bit similarity index 100% rename from binaries/plasma.bit rename to binaries/sie_rootfs_files/root/binaries/plasma.bit diff --git a/binaries/sie_rootfs_files/root/binaries/program_rootfs.sh b/binaries/sie_rootfs_files/root/binaries/program_rootfs.sh new file mode 100755 index 0000000..7bdd7c0 --- /dev/null +++ b/binaries/sie_rootfs_files/root/binaries/program_rootfs.sh @@ -0,0 +1,4 @@ +#!/bin/bash +ROOTFS=openwrt-xburst-qi_lb60-root.ubi +sudo usbboot -f ./usbboot_2gb_nand.cfg -c "boot" +sudo usbboot -f ./usbboot_2gb_nand.cfg -c "nprog 2048 $ROOTFS 0 0 -n" diff --git a/binaries/sgen b/binaries/sie_rootfs_files/root/binaries/sgen similarity index 100% rename from binaries/sgen rename to binaries/sie_rootfs_files/root/binaries/sgen diff --git a/binaries/sram_bus.bit b/binaries/sie_rootfs_files/root/binaries/sram_bus.bit similarity index 100% rename from binaries/sram_bus.bit rename to binaries/sie_rootfs_files/root/binaries/sram_bus.bit diff --git a/binaries/sweepgen b/binaries/sie_rootfs_files/root/binaries/sweepgen similarity index 100% rename from binaries/sweepgen rename to binaries/sie_rootfs_files/root/binaries/sweepgen diff --git a/binaries/system.bit b/binaries/sie_rootfs_files/root/binaries/system.bit similarity index 100% rename from binaries/system.bit rename to binaries/sie_rootfs_files/root/binaries/system.bit diff --git a/binaries/sie_rootfs_files/root/binaries/usbboot_2gb_nand.cfg b/binaries/sie_rootfs_files/root/binaries/usbboot_2gb_nand.cfg new file mode 100644 index 0000000..3406934 --- /dev/null +++ b/binaries/sie_rootfs_files/root/binaries/usbboot_2gb_nand.cfg @@ -0,0 +1,59 @@ +# +# usbboot configuration file +# +# Utility to respond to the Ingenic XBurst USB boot protocol, provide +# initial boot stages and ability to access NAND on device. +# +# Authors: Ingenic Semiconductor, Inc. +# Xiangfu Liu +# Marek Lindner +# Wolfgang Spraul +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# [PLL] +EXTCLK = 12 #Define the external crystal in MHz +CPUSPEED = 252 #Define the PLL output frequency +PHMDIV = 3 #Define the frequency divider ratio of PLL=CCLK:PCLK=HCLK=MCLK +BOUDRATE = 57600 #Define the uart boudrate +USEUART = 0 #Use which uart, 0/1 for jz4740,0/1/2/3 for jz4750 + +# [SDRAM] +BUSWIDTH = 16 #The bus width of the SDRAM in bits (16|32) +BANKS = 4 #The bank number (2|4) +ROWADDR = 13 #Row address width in bits (11-13) +COLADDR = 9 #Column address width in bits (8-12) +ISMOBILE = 0 #Define whether SDRAM is mobile SDRAM, this only valid for Jz4750 ,1:yes 0:no +ISBUSSHARE = 1 #Define whether SDRAM bus share with NAND 1:shared 0:unshared +DEBUGOPS = 0 + +# [NAND] +NAND_BUSWIDTH = 8 #The width of the NAND flash chip in bits (8|16|32) +NAND_ROWCYCLES = 3 #The row address cycles (2|3) +NAND_PAGESIZE = 4096 #The page size of the NAND chip in bytes(512|2048|4096) +NAND_PAGEPERBLOCK = 128 #The page number per block +NAND_FORCEERASE = 1 #The force to erase flag (0|1) +NAND_OOBSIZE = 128 #oob size in byte +NAND_ECCPOS = 12 #Specify the ECC offset inside the oob data (0-[oobsize-1]) +NAND_BADBLOCKPOS = 0 #Specify the badblock flag offset inside the oob (0-[oobsize-1]) +NAND_BADBLOCKPAGE = 127 #Specify the page number of badblock flag inside a block(0-[PAGEPERBLOCK-1]) +NAND_PLANENUM = 1 #The planes number of target nand flash +NAND_BCHBIT = 4 #Specify the hardware BCH algorithm for 4750 (4|8) +NAND_WPPIN = 0 #Specify the write protect pin number +NAND_BLOCKPERCHIP = 0 #Specify the block number per chip,0 means ignore + +#The program will calculate the total SDRAM size by : size = 2^(ROWADDR + COLADDR) * BANKNUM * (SDRAMWIDTH / 4) +#The CPUSPEED has restriction as: ( CPUSPEED % EXTCLK == 0 ) && ( CPUSPEED % 12 == 0 ) +#For jz4750, the program just init BANK0(DSC0). +#Beware all variables must be set correct! diff --git a/binaries/xc3sprog b/binaries/sie_rootfs_files/root/binaries/xc3sprog similarity index 100% rename from binaries/xc3sprog rename to binaries/sie_rootfs_files/root/binaries/xc3sprog diff --git a/binaries/sie_rootfs_files/usr/bin/sgen b/binaries/sie_rootfs_files/usr/bin/sgen new file mode 100755 index 0000000..e73be78 Binary files /dev/null and b/binaries/sie_rootfs_files/usr/bin/sgen differ diff --git a/binaries/sie_rootfs_files/usr/bin/siggen b/binaries/sie_rootfs_files/usr/bin/siggen new file mode 100755 index 0000000..48b7390 Binary files /dev/null and b/binaries/sie_rootfs_files/usr/bin/siggen differ diff --git a/binaries/sie_rootfs_files/usr/bin/sweepgen b/binaries/sie_rootfs_files/usr/bin/sweepgen new file mode 100755 index 0000000..749b0da Binary files /dev/null and b/binaries/sie_rootfs_files/usr/bin/sweepgen differ diff --git a/binaries/sie_rootfs_files/usr/bin/xc3sprog b/binaries/sie_rootfs_files/usr/bin/xc3sprog new file mode 100755 index 0000000..7e4ca09 Binary files /dev/null and b/binaries/sie_rootfs_files/usr/bin/xc3sprog differ diff --git a/binaries/sie_rootfs_files/usr/share/xc3sprog/devlist.txt b/binaries/sie_rootfs_files/usr/share/xc3sprog/devlist.txt new file mode 100644 index 0000000..8ea6f2e --- /dev/null +++ b/binaries/sie_rootfs_files/usr/share/xc3sprog/devlist.txt @@ -0,0 +1,20 @@ +# IDCODE IR Length Text +0140d093 6 XC3S50 +01414093 6 XC3S200 +0141c093 6 XC3S400 +01428093 6 XC3S1000 +01434093 6 XC3S1500 +01440093 6 XC3S2000 +01448093 6 XC3S4000 +01450093 6 XC3S5000 +05045093 8 XCF02S +00608093 5 XC2S15 +0060c093 5 XC2S30 +00610093 5 XC2S50 +00614093 5 XC2S100 +00618093 5 XC2S150 +0061c093 5 XC2S200 +11c10093 6 XC3S100E +11c1a093 6 XC3S250E +41c22093 6 XC3S500E +