xx
This commit is contained in:
Willam Christensen 2014-07-24 23:37:41 -06:00
commit 2099ed8abc
3 changed files with 677 additions and 5 deletions

View file

@ -5,9 +5,9 @@ buildarch=4
pkgbase=uboot-sunxi
pkgname=('uboot-cubieboard2' 'uboot-cubietruck' 'uboot-iteaduino_plus_a10' 'uboot-iteaduino_plus_a20'
'uboot-hackberry' 'uboot-a20-olinuxino_micro')
'uboot-hackberry' 'uboot-a20-olinuxino_micro' 'uboot-a13-olinuxinom')
pkgver=2014.04
pkgrel=8
pkgrel=9
arch=('armv7h')
url="https://github.com/linux-sunxi/u-boot-sunxi"
license=('GPL')
@ -21,7 +21,8 @@ source=("https://github.com/linux-sunxi/u-boot-sunxi/archive/${_commit}.tar.gz"
'iteaduino_plus_a10.fex' 'iteaduino_plus_a10.env'
'iteaduino_plus_a20.fex' 'iteaduino_plus_a20.env'
'hackberry.fex' 'hackberry.env'
'a20-olinuxino_micro.fex' 'a20-olinuxino_micro.env')
'a20-olinuxino_micro.fex' 'a20-olinuxino_micro.env'
'a13-olinuxinom.fex' 'a13-olinuxinom.env')
md5sums=('7b28f844d7b143b4f214cab9582681c8'
'c52abd6e8b1bc6d367809b5a7950d733'
'36c04988cecd53151f3f5ff5c48d76a9'
@ -35,6 +36,8 @@ md5sums=('7b28f844d7b143b4f214cab9582681c8'
'd19b25217059a2594c53ffe0eb1e0a12'
'd41d8cd98f00b204e9800998ecf8427e'
'2cac23939b761d1ea668faa2c68b3688'
'd41d8cd98f00b204e9800998ecf8427e'
'0e4011773c1ec3aff4d5ca18fae84672'
'd41d8cd98f00b204e9800998ecf8427e')
prepare() {
@ -49,11 +52,11 @@ build() {
unset CXXFLAGS
unset LDFLAGS
for i in Cubieboard2 Cubietruck Iteaduino_Plus_A10 Iteaduino_Plus_A20 Hackberry A20-OLinuXino_MICRO; do
for i in Cubieboard2 Cubietruck Iteaduino_Plus_A10 Iteaduino_Plus_A20 Hackberry A20-OLinuXino_MICRO A13-OLinuXinoM; do
mkdir ../bin_${i}
make distclean
make ${i}_config
make
make
mv u-boot-sunxi-with-spl.bin ../bin_${i}
done
}
@ -135,3 +138,16 @@ package_uboot-a20-olinuxino_micro() {
fex2bin a20-olinuxino_micro.fex "${pkgdir}"/boot/script.bin
cp a20-olinuxino_micro.env "${pkgdir}"/boot/uEnv.txt
}
package_uboot-a13-olinuxinom() {
pkgdesc="U-Boot for A13 OLinuXino Micro"
install=${pkgbase}.install
provides=('uboot-sunxi')
conflicts=('uboot-sunxi')
mkdir -p "${pkgdir}"/boot
cp bin_A13-OLinuXinoM/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot
fex2bin a13-olinuxinom.fex "${pkgdir}"/boot/script.bin
cp a13-olinuxinom.env "${pkgdir}"/boot/uEnv.txt
}

View file

View file

@ -0,0 +1,656 @@
[product]
version = "1.0"
machine = "A13-olinuxino-micro-V1.0"
[target]
boot_clock = 1008
dcdc2_vol = 1400
dcdc3_vol = 1200
ldo2_vol = 3000
ldo3_vol = 3300
ldo4_vol = 3300
pll4_freq = 960
pll6_freq = 720
[card_boot]
logical_start = 40960
sprite_gpio0 = ""
[card_boot0_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF00<2><1><default><default>
sdc_d0 = port:PF01<2><1><default><default>
sdc_clk = port:PF02<2><1><default><default>
sdc_cmd = port:PF03<2><1><default><default>
sdc_d3 = port:PF04<2><1><default><default>
sdc_d2 = port:PF05<2><1><default><default>
[twi_para]
twi_port = 0
twi_scl = port:PB00<2><1><default><default>
twi_sda = port:PB01<2><1><default><default>
[uart_para]
uart_debug_port = 1
uart_debug_tx = port:PG03<4><1><default><default>
uart_debug_rx = port:PG04<4><1><default><default>
[jtag_para]
jtag_enable = 0
jtag_ms = port:PF00<4><1><default><default>
jtag_ck = port:PF05<4><1><default><default>
jtag_do = port:PF03<4><1><default><default>
jtag_di = port:PF01<4><1><default><default>
[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 408
dram_type = 3
dram_rank_num = 1
dram_chip_density = 2048
dram_io_width = 16
dram_bus_width = 16
dram_cas = 9
dram_zq = 0x7b
dram_odt_en = 0
dram_size = 256
dram_tpr0 = 0x42d899b7
dram_tpr1 = 0xa090
dram_tpr2 = 0x22a00
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_emr1 = 0x0
dram_emr2 = 0x10
dram_emr3 = 0x0
[nand_para]
nand_used = 0
nand_we = port:PC00<2><default><default><default>
nand_ale = port:PC01<2><default><default><default>
nand_cle = port:PC02<2><default><default><default>
nand_ce1 = port:PC03<2><default><default><default>
nand_ce0 = port:PC04<2><default><default><default>
nand_nre = port:PC05<2><default><default><default>
nand_rb0 = port:PC06<2><default><default><default>
nand_rb1 = port:PC07<2><default><default><default>
nand_d0 = port:PC08<2><default><default><default>
nand_d1 = port:PC09<2><default><default><default>
nand_d2 = port:PC10<2><default><default><default>
nand_d3 = port:PC11<2><default><default><default>
nand_d4 = port:PC12<2><default><default><default>
nand_d5 = port:PC13<2><default><default><default>
nand_d6 = port:PC14<2><default><default><default>
nand_d7 = port:PC15<2><default><default><default>
nand_wp = ""
nand_ce2 = ""
nand_ce3 = ""
nand_ce4 = ""
nand_ce5 = ""
nand_ce6 = ""
nand_ce7 = ""
nand_spi = ""
nand_ndqs = port:PC19<2><default><default><default>
[mali_para]
mali_used = 0
mali_clkdiv = 0
[twi0_para]
twi0_used = 1
twi0_scl = port:PB00<2><default><default><default>
twi0_sda = port:PB01<2><default><default><default>
[twi1_para]
twi1_used = 1
twi1_scl = port:PB15<2><default><default><default>
twi1_sda = port:PB16<2><default><default><default>
[twi2_para]
twi2_used = 1
twi2_scl = port:PB17<2><default><default><default>
twi2_sda = port:PB18<2><default><default><default>
[uart_para0]
uart_used = 0
uart_port = 0
uart_type = 2
uart_tx = port:PB19<2><1><default><default>
uart_rx = port:PB20<2><1><default><default>
[uart_para1]
uart_used = 1
uart_port = 1
uart_type = 2
uart_tx = port:PG03<4><1><default><default>
uart_rx = port:PG04<4><1><default><default>
[spi1_para]
spi_used = 0
spi_cs0 = port:PG09<2><default><default><default>
spi_cs1 = port:PG13<2><default><default><default>
spi_sclk = port:PG10<2><default><default><default>
spi_mosi = port:PG11<2><default><default><default>
spi_miso = port:PG12<2><default><default><default>
[spi2_para]
spi_used = 0
spi_cs0 = port:PE00<4><default><default><default>
spi_sclk = port:PE01<4><default><default><default>
spi_mosi = port:PB02<4><default><default><default>
spi_miso = port:PB03<4><default><default><default>
[rtp_para]
rtp_used = 0
rtp_screen_size = 5
rtp_regidity_level = 5
rtp_press_threshold_enable = 0
rtp_press_threshold = 0x1f40
rtp_sensitive_level = 0xf
rtp_exchange_x_y_flag = 0
[ctp_para]
ctp_used = 0
ctp_name = "ft5x_ts"
ctp_twi_id = 2
ctp_twi_addr = 0x70
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0
ctp_int_port = port:PH21<6><default><default><default>
ctp_wakeup = port:PB13<1><default><default><1>
ctp_io_port = port:PH21<0><default><default><default>
[tkey_para]
tkey_used = 0
tkey_name = "hv_keypad"
tkey_twi_id = 2
tkey_twi_addr = 0x62
tkey_int = ""
[motor_para]
motor_used = 0
motor_shake = ""
;Note the VGA output on the a13_olinuxino_micro is not using the regular
;A1x VGA output logic, as the A13 does not have that instead olimex clevery
;hooked up some logic to the lcd controller to give us a VGA output
;
;This means that:
;1) screen0_output_type must be set to 1
;2) screen0_output_mode does not do anything
;
;Basically the entire [disp_init] section should not be touched, instead the
;lcd0_para section can be used to changed the vga-output resolution, note
;that this for a different resultion you also need to change the front-portal,
;back portal and total-lines settings (good old xf86 modelines stuff, but then
;in a different format
[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 1
screen0_output_mode = 5
screen1_output_type = 1
screen1_output_mode = 5
fb0_framebuffer_num = 2
fb0_format = 9
fb0_pixel_sequence = 2
fb0_scaler_mode_enable = 0
fb1_framebuffer_num = 2
fb1_format = 9
fb1_pixel_sequence = 2
fb1_scaler_mode_enable = 0
[lcd0_para]
lcd_used = 1
lcd_x = 800
lcd_y = 600
lcd_dclk_freq = 40
lcd_pwm_not_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 10000
lcd_pwm_pol = 0
lcd_if = 0
lcd_hbp = 216
lcd_ht = 1056
lcd_vbp = 23
lcd_vt = 1256
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_hv_vspw = 4
lcd_hv_hspw = 128
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 1
lcd_io_cfg0 = 268435456
lcd_gamma_correction_en = 0
lcd_gamma_tbl_0 = 0x0
lcd_gamma_tbl_1 = 0x10101
lcd_gamma_tbl_255 = 0xffffff
lcd_bl_en_used = 0
lcd_bl_en =
lcd_power_used = 0
lcd_power =
lcd_pwm_used = 0
lcd_gpio_0 = ""
lcd_gpio_1 = ""
lcd_gpio_2 = ""
lcd_gpio_3 = ""
lcdd0 = port:PD00<2><0><default><default>
lcdd1 = port:PD01<2><0><default><default>
lcdd2 = port:PD02<2><0><default><default>
lcdd3 = port:PD03<2><0><default><default>
lcdd4 = port:PD04<2><0><default><default>
lcdd5 = port:PD05<2><0><default><default>
lcdd6 = port:PD06<2><0><default><default>
lcdd7 = port:PD07<2><0><default><default>
lcdd8 = port:PD08<2><0><default><default>
lcdd9 = port:PD09<2><0><default><default>
lcdd10 = port:PD10<2><0><default><default>
lcdd11 = port:PD11<2><0><default><default>
lcdd12 = port:PD12<2><0><default><default>
lcdd13 = port:PD13<2><0><default><default>
lcdd14 = port:PD14<2><0><default><default>
lcdd15 = port:PD15<2><0><default><default>
lcdd16 = port:PD16<2><0><default><default>
lcdd17 = port:PD17<2><0><default><default>
lcdd18 = port:PD18<2><0><default><default>
lcdd19 = port:PD19<2><0><default><default>
lcdd20 = port:PD20<2><0><default><default>
lcdd21 = port:PD21<2><0><default><default>
lcdd22 = port:PD22<2><0><default><default>
lcdd23 = port:PD23<2><0><default><default>
lcdclk = port:PD24<2><0><default><default>
lcdde = port:PD25<2><0><default><default>
lcdhsync = port:PD26<2><0><default><default>
lcdvsync = port:PD27<2><0><default><default>
[tv_out_dac_para]
dac_used = 0
dac0_src = 0
[hdmi_para]
hdmi_used = 0
[csi0_para]
csi_used = 0
csi_mode = 0
csi_dev_qty = 1
csi_stby_mode = 1
csi_mname = "gc0308"
csi_twi_id = 2
csi_twi_addr = 0x42
csi_if = 0
csi_vflip = 0
csi_hflip = 1
csi_iovdd = ""
csi_avdd = ""
csi_dvdd = ""
csi_flash_pol = 1
csi_mname_b = ""
csi_twi_id_b = 1
csi_twi_addr_b = 0x78
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 0
csi_iovdd_b = ""
csi_avdd_b = ""
csi_dvdd_b = ""
csi_flash_pol_b = 1
csi_pck = port:PE00<3><default><default><default>
csi_ck = port:PE01<3><default><default><default>
csi_hsync = port:PE02<3><default><default><default>
csi_vsync = port:PE03<3><default><default><default>
csi_d0 = port:PE04<3><default><default><default>
csi_d1 = port:PE05<3><default><default><default>
csi_d2 = port:PE06<3><default><default><default>
csi_d3 = port:PE07<3><default><default><default>
csi_d4 = port:PE08<3><default><default><default>
csi_d5 = port:PE09<3><default><default><default>
csi_d6 = port:PE10<3><default><default><default>
csi_d7 = port:PE11<3><default><default><default>
csi_reset =
csi_power_en = ""
csi_stby = port:PB10<1><default><default><1>
csi_flash = ""
csi_af_en = ""
csi_reset_b = ""
csi_power_en_b = ""
csi_stby_b = ""
csi_flash_b = ""
csi_af_en_b = ""
[csi1_para]
csi_used = 0
csi_mode = 0
csi_dev_qty = 1
csi_stby_mode = 1
csi_mname = ""
csi_twi_id = 1
csi_twi_addr = 0xba
csi_if = 0
csi_vflip = 0
csi_hflip = 0
csi_iovdd = ""
csi_avdd = ""
csi_dvdd = ""
csi_flash_pol = 1
csi_mname_b = ""
csi_twi_id_b = 1
csi_twi_addr_b = 0x78
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 0
csi_iovdd_b = ""
csi_avdd_b = ""
csi_dvdd_b = ""
csi_flash_pol_b = 1
csi_reset = ""
csi_power_en = ""
csi_stby = ""
csi_flash = ""
csi_af_en = ""
csi_reset_b = ""
csi_power_en_b = ""
csi_stby_b = ""
csi_flash_b = ""
csi_af_en_b = ""
[mmc0_para]
sdc_used = 1
sdc_detmode = 1
bus_width = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PG00<0><0><default><default>
sdc_use_wp = 0
sdc_wp = ""
[mmc1_para]
sdc_used = 0
sdc_detmode = ""
bus_width = ""
sdc_cmd = ""
sdc_clk = ""
sdc_d0 = ""
sdc_d1 = ""
sdc_d2 = ""
sdc_d3 = ""
sdc_det = ""
sdc_use_wp = ""
sdc_wp = ""
[mmc2_para]
sdc_used = 0
sdc_detmode = 3
bus_width = 4
sdc_cmd = port:PE08<4><1><2><default>
sdc_clk = port:PE09<4><1><2><default>
sdc_d0 = port:PE04<4><1><2><default>
sdc_d1 = port:PE05<4><1><2><default>
sdc_d2 = port:PE06<4><1><2><default>
sdc_d3 = port:PE07<4><1><2><default>
sdc_det = ""
sdc_use_wp = 0
sdc_wp = ""
[ms_para]
ms_used = 0
ms_bs = ""
ms_clk = ""
ms_d0 = ""
ms_d1 = ""
ms_d2 = ""
ms_d3 = ""
ms_det = ""
[keypad_para]
kp_used = 0
kp_in_size = ""
kp_out_size = ""
kp_in0 = ""
kp_in1 = ""
kp_in2 = ""
kp_in3 = ""
kp_in4 = ""
kp_in5 = ""
kp_in6 = ""
kp_in7 = ""
kp_out0 = ""
kp_out1 = ""
kp_out2 = ""
kp_out3 = ""
kp_out4 = ""
kp_out5 = ""
kp_out6 = ""
kp_out7 = ""
[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PG02<0><1><default><default>
usb_det_vbus_gpio = port:PG01<0><0><default><default>
usb_drv_vbus_gpio = port:PG12<1><0><default><0>
usb_host_init_state = 0
[usbc1]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_id_gpio = ""
usb_det_vbus_gpio = ""
usb_drv_vbus_gpio = port:PG11<1><0><default><0>
usb_host_init_state = 1
[usb_feature]
vendor_id = 6353
mass_storage_id = 1
adb_id = 2
manufacturer_name = "USB Developer"
product_name = "Android"
serial_number = "20080411"
[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 3
[gsensor_para]
gsensor_used = 0
gsensor_name = "bma222"
gsensor_twi_id = 1
gsensor_twi_addr = 0x18
gsensor_int1 = ""
gsensor_int2 = ""
[gps_para]
gps_used = 0
gps_spi_id = ""
gps_spi_cs_num = ""
gps_lradc = ""
gps_clk = ""
gps_sign = ""
gps_mag = ""
gps_vcc_en = ""
gps_osc_en = ""
gps_rx_en = ""
[sdio_wifi_para]
sdio_wifi_used = 0
sdio_wifi_sdc_id = ""
sdio_wifi_mod_sel = ""
[usb_wifi_para]
usb_wifi_used = 0
usb_wifi_usbc_num = 1
[3g_para]
3g_used = 0
3g_name = ""
3g_usbc_num = ""
3g_on_off = ""
3g_reset = ""
3g_poweron = ""
3g_wakeup_out = ""
3g_wakeup_in = ""
[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0
gy_int1 = ""
gy_int2 = ""
[ls_para]
ls_used = 0
ls_name = "ltr501als"
ls_twi_id = 1
ls_twi_addr = ""
ls_int = ""
[compass_para]
compass_used = 0
compass_twi_id = ""
compass_twi_addr = ""
compass_int = ""
[bt_para]
bt_used = 0
bt_uart_id = ""
bt_mod_type = ""
[i2s_para]
i2s_used = 0
i2s_channel = ""
i2s_mclk = ""
i2s_bclk = ""
i2s_lrclk = ""
i2s_dout0 = ""
i2s_dout1 = ""
i2s_dout2 = ""
i2s_dout3 = ""
i2s_din = ""
[spdif_para]
spdif_used = 0
spdif_mclk = ""
spdif_dout = ""
spdif_din = ""
[audio_para]
audio_used = 1
audio_pa_ctrl = port:PG10<1><default><default><0>
[ir_para]
ir_used = 0
ir0_rx = port:PB04<2><default><default><default>
[rtc_para]
rtc_used = 0
rtc_name = "pcf8563"
rtc_twi_id = 1
rtc_twi_addr = 81
[pmu_para]
pmu_used = 0
pmu_twi_addr = 52
pmu_twi_id = 0
pmu_irq_id = 0
pmu_battery_rdc = 200
pmu_battery_cap = 2600
pmu_init_chgcur = 300
pmu_earlysuspend_chgcur = 600
pmu_suspend_chgcur = 1000
pmu_resume_chgcur = 300
pmu_shutdown_chgcur = 1000
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 100
pmu_init_adc_freqc = 100
pmu_init_chg_pretime = 50
pmu_init_chg_csttime = 720
pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 1
pmu_bat_para4 = 5
pmu_bat_para5 = 7
pmu_bat_para6 = 13
pmu_bat_para7 = 16
pmu_bat_para8 = 26
pmu_bat_para9 = 36
pmu_bat_para10 = 46
pmu_bat_para11 = 53
pmu_bat_para12 = 61
pmu_bat_para13 = 73
pmu_bat_para14 = 84
pmu_bat_para15 = 92
pmu_bat_para16 = 100
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4000
pmu_usbcur_pc = 0
pmu_pwroff_vol = 3300
pmu_pwron_vol = 2900
pmu_pekoff_time = 6000
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_pwrnoe_time = 2000
pmu_intotp_en = 1
pmu_used2 = 0
pmu_adpdet = ""
pmu_init_chgcur2 = 400
pmu_earlysuspend_chgcur2 = 600
pmu_suspend_chgcur2 = 1200
pmu_resume_chgcur2 = 400
pmu_shutdown_chgcur2 = 1200
pmu_suspendpwroff_vol = 3500
pmu_batdeten = 1
[recovery_key]
key_min = 4
key_max = 6
[gpio_para]
gpio_used = 1
gpio_num = 15
gpio_pin_1 = port:PB03<1><default><default><default>
gpio_pin_2 = port:PB04<1><default><default><default>
gpio_pin_3 = port:PB10<1><default><default><1>
gpio_pin_4 = port:PE04<0><default><default><default>
gpio_pin_5 = port:PE05<0><default><default><default>
gpio_pin_6 = port:PE06<0><default><default><default>
gpio_pin_7 = port:PE07<0><default><default><default>
gpio_pin_8 = port:PE08<1><default><default><default>
gpio_pin_9 = port:PE09<1><default><default><default>
gpio_pin_10 = port:PE10<1><default><default><default>
gpio_pin_11 = port:PE11<1><default><default><default>
gpio_pin_12 = port:PG09<1><default><default><default>
gpio_pin_13 = port:PG10<1><default><default><default>
gpio_pin_14 = port:PG11<1><default><default><default>
gpio_pin_15 = port:PB02<1><default><default><0>
[leds_para]
leds_used = 1
leds_num = 1
leds_pin_1 = port:PG09<1><0><default><1>
leds_name_1 = "green:pg09:led1"
leds_default_1 = 1