Jump to content

Recommended Posts

Posted

Hi everyone,

 

I'm trying to get armbian running on an A20 based board. Been through the wikis (armbian and sunxi-linux) but I get a problem that is hard to figure out (for me).

The board is an old tablet, know as Inet K100 (mine is branded Storex), and I'm trying to get the legacy kernel running on it to get a desktop install with LCD etc...
Using sunxi-tools, I was able to get a fex file from the board.

 

Spoiler

[product]
version = "100"
machine = "K1001L1B"

[platform]
eraseflag = 1

[target]
boot_clock = 912
dcdc2_vol = 1400
dcdc3_vol = 1250
ldo2_vol = 3000
ldo3_vol = 2800
ldo4_vol = 2800
power_start = 0
storage_type = 0

[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll7 = 297
pll8 = 336

[card_boot]
logical_start = 40960
sprite_gpio0 =

[card0_boot_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>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_cmd = port:PC06<3><1><default><default>
sdc_clk = port:PC07<3><1><default><default>
sdc_d0 = port:PC08<3><1><default><default>
sdc_d1 = port:PC09<3><1><default><default>
sdc_d2 = port:PC10<3><1><default><default>
sdc_d3 = port:PC11<3><1><default><default>

[twi_para]
twi_port = 0
twi_scl = port:PB00<2><default><default><default>
twi_sda = port:PB01<2><default><default><default>

[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB22<2><1><default><default>
uart_debug_rx = port:PB23<2><1><default><default>

[uart_force_debug]
uart_debug_port = 0
uart_debug_tx = port:PF02<4><1><default><default>
uart_debug_rx = port:PF04<4><1><default><default>

[jtag_para]
jtag_enable = 0
jtag_ms = port:PB14<3><default><default><default>
jtag_ck = port:PB15<3><default><default><default>
jtag_do = port:PB16<3><default><default><default>
jtag_di = port:PB17<3><default><default><default>

[pm_para]
standby_mode = 0

[dram_para]
dram_baseaddr = 0x40000000
dram_clk = 384
dram_type = 3
dram_rank_num = 1
dram_chip_density = 4096
dram_io_width = 16
dram_bus_width = 32
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_size = 1024
dram_tpr0 = 0x42d899b7
dram_tpr1 = 0xa090
dram_tpr2 = 0x22a00
dram_tpr3 = 0x0
dram_tpr4 = 0x1
dram_tpr5 = 0x0
dram_emr1 = 0x4
dram_emr2 = 0x10
dram_emr3 = 0x0

[mali_para]
mali_used = 1
mali_clkdiv = 1

[emac_para]
emac_used = 0
emac_rxd3 = port:PA00<2><default><default><default>
emac_rxd2 = port:PA01<2><default><default><default>
emac_rxd1 = port:PA02<2><default><default><default>
emac_rxd0 = port:PA03<2><default><default><default>
emac_txd3 = port:PA04<2><default><default><default>
emac_txd2 = port:PA05<2><default><default><default>
emac_txd1 = port:PA06<2><default><default><default>
emac_txd0 = port:PA07<2><default><default><default>
emac_rxclk = port:PA08<2><default><default><default>
emac_rxerr = port:PA09<2><default><default><default>
emac_rxdV = port:PA10<2><default><default><default>
emac_mdc = port:PA11<2><default><default><default>
emac_mdio = port:PA12<2><default><default><default>
emac_txen = port:PA13<2><default><default><default>
emac_txclk = port:PA14<2><default><default><default>
emac_crs = port:PA15<2><default><default><default>
emac_col = port:PA16<2><default><default><default>
emac_reset = port:PA17<1><default><default><default>

[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:PB18<2><default><default><default>
twi1_sda = port:PB19<2><default><default><default>

[twi2_para]
twi2_used = 1
twi2_scl = port:PB20<2><default><default><default>
twi2_sda = port:PB21<2><default><default><default>

[uart_para0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB22<2><1><default><default>
uart_rx = port:PB23<2><1><default><default>

[uart_para1]
uart_used = 0
uart_port = 1
uart_type = 8
uart_tx = port:PA10<4><1><default><default>
uart_rx = port:PA11<4><1><default><default>
uart_rts = port:PA12<4><1><default><default>
uart_cts = port:PA13<4><1><default><default>
uart_dtr = port:PA14<4><1><default><default>
uart_dsr = port:PA15<4><1><default><default>
uart_dcd = port:PA16<4><1><default><default>
uart_ring = port:PA17<4><1><default><default>

[uart_para2]
uart_used = 0
uart_port = 2
uart_type = 4
uart_tx = port:PI18<3><1><default><default>
uart_rx = port:PI19<3><1><default><default>
uart_rts = port:PI16<3><1><default><default>
uart_cts = port:PI17<3><1><default><default>

[uart_para3]
uart_used = 0
uart_port = 3
uart_type = 4
uart_tx = port:PH00<4><1><default><default>
uart_rx = port:PH01<4><1><default><default>
uart_rts = port:PH02<4><1><default><default>
uart_cts = port:PH03<4><1><default><default>

[uart_para4]
uart_used = 0
uart_port = 4
uart_type = 2
uart_tx = port:PH04<4><1><default><default>
uart_rx = port:PH05<4><1><default><default>

[uart_para5]
uart_used = 0
uart_port = 5
uart_type = 2
uart_tx = port:PH06<4><1><default><default>
uart_rx = port:PH07<4><1><default><default>

[uart_para6]
uart_used = 0
uart_port = 6
uart_type = 2
uart_tx = port:PA12<3><1><default><default>
uart_rx = port:PA13<3><1><default><default>

[uart_para7]
uart_used = 0
uart_port = 7
uart_type = 2
uart_tx = port:PA14<3><1><default><default>
uart_rx = port:PA15<3><1><default><default>

[spi0_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PI10<2><default><default><default>
spi_cs1 = port:PI14<2><default><default><default>
spi_sclk = port:PI11<2><default><default><default>
spi_mosi = port:PI12<2><default><default><default>
spi_miso = port:PI13<2><default><default><default>

[spi1_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA00<3><default><default><default>
spi_cs1 = port:PA04<3><default><default><default>
spi_sclk = port:PA01<3><default><default><default>
spi_mosi = port:PA02<3><default><default><default>
spi_miso = port:PA03<3><default><default><default>

[spi2_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PC19<3><default><default><default>
spi_cs1 = port:PB13<2><default><default><default>
spi_sclk = port:PC20<3><default><default><default>
spi_mosi = port:PC21<3><default><default><default>
spi_miso = port:PC22<3><default><default><default>

[spi3_para]
spi_used = 0
spi_cs_bitmap = 1
spi_cs0 = port:PA05<3><default><default><default>
spi_cs1 = port:PA09<3><default><default><default>
spi_sclk = port:PA06<3><default><default><default>
spi_mosi = port:PA07<3><default><default><default>
spi_miso = port:PA08<3><default><default><default>

[ctp_para]
ctp_used = 1
ctp_twi_id = 2
mSSD253xDriverType = 1005
ctp_twi_addr = 0x40
ctp_screen_max_x = 1024
ctp_screen_max_y = 600
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_power_en = port:PI16<1><default><default><1>

[tkey_para]
tkey_used = 0
tkey_twi_id = 2
tkey_twi_addr = 0x62
tkey_int = port:PI13<6><default><default><default>

[motor_para]
motor_used = 0
motor_shake = port:PH23<1><default><default><0>

[nand_para]
nand_used = 1
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 = port:PC16<2><default><default><default>
nand_ce2 = port:PC17<2><default><default><default>
nand_ce3 = port:PC18<2><default><default><default>
nand_ce4 =
nand_ce5 =
nand_ce6 =
nand_ce7 =
nand_spi = port:PC23<3><default><default><default>
nand_ndqs = port:PC24<2><default><default><default>
good_block_ratio = 944

[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 1
screen0_output_mode = 4
screen1_output_type = 1
screen1_output_mode = 4
fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb1_framebuffer_num = 2
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
lcd0_backlight = 197
lcd1_backlight = 197
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

[lcd0_para]
lcd_used = 1
lcd_x = 1024
lcd_y = 600
lcd_dclk_freq = 52
lcd_pwm_not_used = 0
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 1
lcd_pwm_max_limit = 255
lcd_if = 3
lcd_hbp = 33
lcd_ht = 1344
lcd_vbp = 23
lcd_vt = 1270
lcd_vspw = 0
lcd_hspw = 0
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
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 = 1
lcd_bl_en = port:PH07<1><0><default><1>
lcd_power_used = 1
lcd_power = port:PH08<1><0><default><1>
lcd_pwm_used = 1
lcd_pwm = port:PB02<2><0><default><default>
lcdd0 = port:PD00<3><0><3><default>
lcdd1 = port:PD01<3><0><3><default>
lcdd2 = port:PD02<3><0><3><default>
lcdd3 = port:PD03<3><0><3><default>
lcdd4 = port:PD04<3><0><3><default>
lcdd5 = port:PD05<3><0><3><default>
lcdd6 = port:PD06<3><0><3><default>
lcdd7 = port:PD07<3><0><3><default>
lcdd8 = port:PD08<3><0><3><default>
lcdd9 = port:PD09<3><0><3><default>

[lcd1_para]
lcd_used = 0
lcd_x = 0
lcd_y = 0
lcd_dclk_freq = 0
lcd_pwm_not_used = 0
lcd_pwm_ch = 1
lcd_pwm_freq = 0
lcd_pwm_pol = 0
lcd_if = 0
lcd_hbp = 0
lcd_ht = 0
lcd_vbp = 0
lcd_vt = 0
lcd_vspw = 0
lcd_hspw = 0
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_lvds_ch = 0
lcd_lvds_mode = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 0
lcd_io_cfg0 = 0
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 = 1
lcd_pwm = port:PI03<2><0><default><default>
lcd_gpio_0 =
lcd_gpio_1 =
lcd_gpio_2 =
lcd_gpio_3 =
lcdd0 = port:PH00<2><0><default><default>
lcdd1 = port:PH01<2><0><default><default>
lcdd2 = port:PH02<2><0><default><default>
lcdd3 = port:PH03<2><0><default><default>
lcdd4 = port:PH04<2><0><default><default>
lcdd5 = port:PH05<2><0><default><default>
lcdd6 = port:PH06<2><0><default><default>
lcdd7 = port:PH07<2><0><default><default>
lcdd8 = port:PH08<2><0><default><default>
lcdd9 = port:PH09<2><0><default><default>
lcdd10 = port:PH10<2><0><default><default>
lcdd11 = port:PH11<2><0><default><default>
lcdd12 = port:PH12<2><0><default><default>
lcdd13 = port:PH13<2><0><default><default>
lcdd14 = port:PH14<2><0><default><default>
lcdd15 = port:PH15<2><0><default><default>
lcdd16 = port:PH16<2><0><default><default>
lcdd17 = port:PH17<2><0><default><default>
lcdd18 = port:PH18<2><0><default><default>
lcdd19 = port:PH19<2><0><default><default>
lcdd20 = port:PH20<2><0><default><default>
lcdd21 = port:PH21<2><0><default><default>
lcdd22 = port:PH22<2><0><default><default>
lcdd23 = port:PH23<2><0><default><default>
lcdclk = port:PH24<2><0><default><default>
lcdde = port:PH25<2><0><default><default>
lcdhsync = port:PH26<2><0><default><default>
lcdvsync = port:PH27<2><0><default><default>

[tv_out_dac_para]
dac_used = 1
dac0_src = 4
dac1_src = 5
dac2_src = 6
dac3_src = 0

[hdmi_para]
hdmi_used = 1

[camera_list_para]
camera_list_para_used = 1
ov7670 = 0
gc0308 = 1
gt2005 = 1
gc2035 = 1
hi704 = 0
sp0838 = 0
mt9m112 = 0
mt9m113 = 0
ov2655 = 0
hi253 = 0
gc0307 = 0
mt9d112 = 0
ov5640 = 1
gc2015 = 1
ov2643 = 0
gc0328 = 1
gc0329 = 1
gc0309 = 1
tvp5150 = 0
s5k4ec = 0
ov5650_mv9335 = 0
siv121d = 0
sp2518 = 1
sp0718 = 1
hm2057 = 1

[csi0_para]
csi_used = 1
csi_dev_qty = 2
csi_stby_mode = 0
csi_mname = "gc2035"
csi_twi_id = 1
csi_twi_addr = 0x78
csi_if = 0
csi_vflip = 0
csi_hflip = 0
csi_iovdd = "axp20_hdmi"
csi_avdd = "axp20_pll"
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd = 2800
csi_vol_avdd =
csi_flash_pol = 1
csi_facing = 0
csi_mname_b = "gc0308"
csi_twi_id_b = 1
csi_twi_addr_b = 0x42
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 0
csi_iovdd_b = "axp20_hdmi"
csi_avdd_b = "axp20_pll"
csi_dvdd_b = ""
csi_vol_iovdd_b = 2800
csi_vol_avdd_b = 2800
csi_vol_dvdd_b =
csi_flash_pol_b = 1
csi_facing_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 = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><1>
csi_flash =
csi_af_en =
csi_reset_b = port:PH13<1><default><default><0>
csi_power_en_b = port:PH16<1><default><default><0>
csi_stby_b = port:PH18<1><default><default><1>
csi_flash_b =
csi_af_en_b =

[csi1_para]
csi_used = 0
csi_dev_qty = 1
csi_stby_mode = 0
csi_mname = "gc0308"
csi_if = 0
csi_iovdd = "axp20_pll"
csi_avdd = ""
csi_dvdd = ""
csi_vol_iovdd = 2800
csi_vol_dvdd =
csi_vol_avdd =
csi_vflip = 0
csi_hflip = 0
csi_flash_pol = 0
csi_facing = 1
csi_twi_id = 1
csi_twi_addr = 0x42
csi_pck = port:PG00<3><default><default><default>
csi_ck = port:PG01<3><default><default><default>
csi_hsync = port:PG02<3><default><default><default>
csi_vsync = port:PG03<3><default><default><default>
csi_d0 = port:PG04<3><default><default><default>
csi_d1 = port:PG05<3><default><default><default>
csi_d2 = port:PG06<3><default><default><default>
csi_d3 = port:PG07<3><default><default><default>
csi_d4 = port:PG08<3><default><default><default>
csi_d5 = port:PG09<3><default><default><default>
csi_d6 = port:PG10<3><default><default><default>
csi_d7 = port:PG11<3><default><default><default>
csi_reset = port:PH13<1><default><default><0>
csi_power_en = port:PH16<1><default><default><0>
csi_stby = port:PH19<1><default><default><0>

[tvout_para]
tvout_used = 0
tvout_channel_num = 1

[tvin_para]
tvin_used = 0
tvin_channel_num = 4

[sata_para]
sata_used = 0
sata_power_en =

[mmc0_para]
sdc_used = 1
sdc_detmode = 1
sdc_buswidth = 4
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_d1 = port:PF00<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_det = port:PH01<0><1><default><default>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><2><default>
sdc_cmd = port:PG01<2><1><2><default>
sdc_d0 = port:PG02<2><1><2><default>
sdc_d1 = port:PG03<2><1><2><default>
sdc_d2 = port:PG04<2><1><2><default>
sdc_d3 = port:PG05<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 4
sdc_cmd = port:PC06<3><1><2><default>
sdc_clk = port:PC07<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc3_para]
sdc_used = 0
sdc_detmode = 4
sdc_buswidth = 4
sdc_cmd = port:PI04<2><1><2><default>
sdc_clk = port:PI05<2><1><2><default>
sdc_d0 = port:PI06<2><1><2><default>
sdc_d1 = port:PI07<2><1><2><default>
sdc_d2 = port:PI08<2><1><2><default>
sdc_d3 = port:PI09<2><1><2><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[ms_para]
ms_used = 0
ms_bs = port:PH06<5><default><default><default>
ms_clk = port:PH07<5><default><default><default>
ms_d0 = port:PH08<5><default><default><default>
ms_d1 = port:PH09<5><default><default><default>
ms_d2 = port:PH10<5><default><default><default>
ms_d3 = port:PH11<5><default><default><default>
ms_det =

[smc_para]
smc_used = 0
smc_rst = port:PH13<5><default><default><default>
smc_vppen = port:PH14<5><default><default><default>
smc_vppp = port:PH15<5><default><default><default>
smc_det = port:PH16<5><default><default><default>
smc_vccen = port:PH17<5><default><default><default>
smc_sck = port:PH18<5><default><default><default>
smc_sda = port:PH19<5><default><default><default>

[ps2_0_para]
ps2_used = 0
ps2_scl = port:PI20<2><1><default><default>
ps2_sda = port:PI21<2><1><default><default>

[ps2_1_para]
ps2_used = 0
ps2_scl = port:PI14<3><1><default><default>
ps2_sda = port:PI15<3><1><default><default>

[can_para]
can_used = 0
can_tx = port:PA16<3><default><default><default>
can_rx = port:PA17<3><default><default><default>

[keypad_para]
kp_used = 0
kp_in_size = 8
kp_out_size = 8
kp_in0 = port:PH08<4><1><default><default>
kp_in1 = port:PH09<4><1><default><default>
kp_in2 = port:PH10<4><1><default><default>
kp_in3 = port:PH11<4><1><default><default>
kp_in4 = port:PH14<4><1><default><default>
kp_in5 = port:PH15<4><1><default><default>
kp_in6 = port:PH16<4><1><default><default>
kp_in7 = port:PH17<4><1><default><default>
kp_out0 = port:PH18<4><1><default><default>
kp_out1 = port:PH19<4><1><default><default>
kp_out2 = port:PH22<4><1><default><default>
kp_out3 = port:PH23<4><1><default><default>
kp_out4 = port:PH24<4><1><default><default>
kp_out5 = port:PH25<4><1><default><default>
kp_out6 = port:PH26<4><1><default><default>
kp_out7 = port:PH27<4><1><default><default>

[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH04<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:PB09<1><0><default><0>
usb_ac_enable_gpio = port:PH05<1><0><default><0>
usb_restrict_gpio = 0
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity = 5

[usbc1]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio = port:PH06<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0

[usbc2]
usb_used = 1
usb_port_type = 1
usb_detect_type = 0
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0

[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 = 2

[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_int1 =
gsensor_int2 =

[gps_para]
gps_used = 0
gps_spi_id = 2
gps_spi_cs_num = 0
gps_lradc = 1
gps_clk = port:PI00<2><default><default><default>
gps_sign = port:PI01<2><default><default><default>
gps_mag = port:PI02<2><default><default><default>
gps_vcc_en = port:PC22<1><default><default><0>
gps_osc_en = port:PI14<1><default><default><0>
gps_rx_en = port:PI15<1><default><default><0>

[wifi_para]
wifi_used = 1
wifi_sdc_id = 3
wifi_usbc_id = 2
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = ""
rtk_rtl8723as_wl_dis = port:PH09<1><default><default><0>
rtk_rtl8723as_bt_dis = port:PB05<1><default><default><0>
rtk_rtl8723as_wl_host_wake = port:PH10<0><default><default><0>
rtk_rtl8723as_bt_host_wake = port:PI21<0><default><default><0>
ap6xxx_wl_regon = port:PH09<1><default><default><0>
ap6xxx_wl_host_wake = port:PH10<0><default><default><0>
ap6xxx_bt_regon = port:PB05<1><default><default><0>
ap6xxx_bt_wake = port:PI20<1><default><default><0>
ap6xxx_bt_host_wake = port:PI21<0><default><default><0>

[3g_para]
3g_used = 0
3g_usbc_num = 2
3g_uart_num = 0
3g_pwr =
3g_wakeup =
3g_int =

[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 0
gy_int1 = port:PH18<6><1><default><default>
gy_int2 = port:PH19<6><1><default><default>

[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 0
ls_int = port:PH20<6><1><default><default>

[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 0
compass_int = port:PI13<6><1><default><default>

[bt_para]
bt_used = 0
bt_uart_id = 2
bt_wakeup = port:PI20<1><default><default><default>
bt_gpio = port:PI21<1><default><default><default>
bt_rst = port:PB05<1><default><default><default>

[i2s_para]
i2s_used = 0
i2s_channel = 2
i2s_mclk = port:PB05<2><1><default><default>
i2s_bclk = port:PB06<2><1><default><default>
i2s_lrclk = port:PB07<2><1><default><default>
i2s_dout0 = port:PB08<2><1><default><default>
i2s_dout1 =
i2s_dout2 =
i2s_dout3 =
i2s_din = port:PB12<2><1><default><default>

[spdif_para]
spdif_used = 0
spdif_mclk =
spdif_dout = port:PB13<4><1><default><default>
spdif_din =

[audio_para]
audio_used = 1
audio_pa_ctrl = port:PH15<1><default><default><0>

[switch_para]
switch_used = 1

[ir_para]
ir_used = 0
ir_rx = port:PB04<2><default><default><default>

[pmu_para]
pmu_used = 1
pmu_twi_addr = 52
pmu_twi_id = 0
pmu_irq_id = 32
pmu_battery_rdc = 171
pmu_battery_cap = 2700
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 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 5
pmu_bat_para6 = 11
pmu_bat_para7 = 13
pmu_bat_para8 = 15
pmu_bat_para9 = 19
pmu_bat_para10 = 32
pmu_bat_para11 = 50
pmu_bat_para12 = 58
pmu_bat_para13 = 71
pmu_bat_para14 = 81
pmu_bat_para15 = 89
pmu_bat_para16 = 100
pmu_usbvol_limit = 1
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4400
pmu_usbcur_pc = 500
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 = port:PH02<0><default><default><default>
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 = 40

[dvfs_table]
max_freq = 912000000
normal_freq = 720000000
min_freq = 60000000
LV_count = 7
LV1_freq = 1008000000
LV1_volt = 1450
LV2_freq = 912000000
LV2_volt = 1400
LV3_freq = 864000000
LV3_volt = 1300
LV4_freq = 720000000
LV4_volt = 1200
LV5_freq = 528000000
LV5_volt = 1100
LV6_freq = 312000000
LV6_volt = 1050
LV7_freq = 144000000
LV7_volt = 1050

 

 

With the armbian git cloned into an Ubuntu Bionic VM, I added a board conf file in config/boards/storexk100.conf and moved the fex file in config/fex/storexk100.fex

Spoiler

# A20 dual core 1Gb RAM SoC 1xSATA GBE
BOARD_NAME="Storex K100"
BOARDFAMILY="sun7i"
BOOTCONFIG="storexk100_defconfig"
MODULES="hci_uart gpio_sunxi rfcomm hidp sunxi-ir bonding spi_sun7i 8021q a20_tp #ap6211"
MODULES_NEXT="brcmfmac bonding"
#
KERNEL_TARGET="default,next,dev"
CLI_TARGET="buster,bionic:next"
DESKTOP_TARGET="xenial:default,next"
#
CLI_BETA_TARGET=""
DESKTOP_BETA_TARGET=""

 

 

I'm also using this temporary userpatch to get the compilation going, but I'll need to go through it to get the right values inside the defconfig and dts files.

 

Spoiler

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index a912dae..b011c64 100755
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -327,7 +327,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \
 	sun7i-a20-primo73.dtb \
 	sun7i-a20-wexler-tab7200.dtb \
 	sun7i-a20-wits-pro-a20-dkt.dtb \
-	sun7i-a20-yones-toptech-bd1078.dtb
+	sun7i-a20-yones-toptech-bd1078.dtb \
+	sun7i-a20-storexk100.dtb
 dtb-$(CONFIG_MACH_SUN8I_A23) += \
 	sun8i-a23-evb.dtb \
 	sun8i-a23-gt90h-v4.dtb \
diff --git a/arch/arm/dts/sun7i-a20-storexk100.dts b/arch/arm/dts/sun7i-a20-storexk100.dts
new file mode 100644
index 0000000..aa734d4
--- /dev/null
+++ b/arch/arm/dts/sun7i-a20-storexk100.dts
@@ -0,0 +1,56 @@
+// SPDX-License-Identifier: GPL-2.0 OR X11
+/*
+ * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
+ *
+ * Minimal dts file for the Storex K100 M5 for u-boot only
+ */
+
+/dts-v1/;
+#include "sun7i-a20.dtsi"
+
+/ {
+	model = "Storex K100";
+	compatible = "storex,k100", "allwinner,sun7i-a20";
+
+	aliases {
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+};
+
+&ehci0 {
+	status = "okay";
+};
+
+&ehci1 {
+	status = "okay";
+};
+
+&gmac {
+	pinctrl-names = "default";
+	pinctrl-0 = <&gmac_pins_mii_a>;
+	phy = <&phy1>;
+	phy-mode = "mii";
+	status = "okay";
+
+	phy1: ethernet-phy@1 {
+		reg = <1>;
+	};
+};
+
+&ohci0 {
+	status = "okay";
+};
+
+&ohci1 {
+	status = "okay";
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pins_a>;
+	status = "okay";
+};
diff --git a/configs/storexk100_defconfig b/configs/storexk100_defconfig
new file mode 100644
index 0000000..2b6e55e
--- /dev/null
+++ b/configs/storexk100_defconfig
@@ -0,0 +1,19 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_SYS_TEXT_BASE=0x4a000000
+CONFIG_MACH_SUN7I=y
+CONFIG_DRAM_CLK=384
+CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:52000,le:60,ri:160,up:13,lo:12,hs:100,vs:10,sync:3,vmode:0"
+CONFIG_VIDEO_LCD_DCLK_PHASE=0
+CONFIG_VIDEO_LCD_POWER="PH8"
+CONFIG_VIDEO_LCD_BL_EN="PH7"
+CONFIG_VIDEO_LCD_BL_PWM="PB2"
+CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-storexk100"
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
+CONFIG_SPL=y
+CONFIG_SPL_I2C_SUPPORT=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_SPL_DOS_PARTITION is not set
+# CONFIG_SPL_ISO_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y

 

 

During configuration, I use the default kernel parameters, I get an image, burned it to an sd card, and I was able to boot up until a point where I get this error. Side note, backlight flashes during boot, so either the fex or the defconfig file are loaded.

 

Spoiler

<1>Unable to handle kernel NULL pointer dereference at virtual address 00000000

<1>pgd = c0004000

<1>[00000000] *pgd=00000000

<0>Internal error: Oops: 80000005 [#1] PREEMPT SMP ARM

[    1.637692] Internal error: Oops: 80000005 [#1] PREEMPT SMP ARM
<d>Modules linked in:[    1.645456] Modules linked in:

 

 

So my obvious question is : why ? :) 
u-boot seems to be loading fine and then trying to load the kernel, so I guess u-boot is working fine, but the problems seems to come from the kernel.

Is there anything special to do with the kernel configuration for an A20 based board, like disabling some stuff ?
Or is it more likely due to a bad defconfig or dts file ?
I thought that the dts file was not needed for the legacy kernel, so do I really need it ?

 

Thanks for taking the time to answer my questions

Full boot log below.
 

 

Spoiler


U-Boot SPL 2018.05-armbian (Aug 29 2019 - 22:48:56 +0200)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1


U-Boot 2018.05-armbian (Aug 29 2019 - 22:48:56 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Storex K100
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
Loading Environment from EXT4... ** File not found /boot/boot.env **

** Unable to read "/boot/boot.env" from mmc0:1 **
Failed (-5)
Setting up a 1024x600 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Net:   No ethernet found.
230454 bytes read in 20 ms (11 MiB/s)
starting USB...
No controllers found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3798 bytes read in 8 ms (462.9 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
192 bytes read in 6 ms (31.3 KiB/s)
5888817 bytes read in 336 ms (16.7 MiB/s)
5496536 bytes read in 315 ms (16.6 MiB/s)
Found legacy kernel configuration
42860 bytes read in 27 ms (1.5 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5888753 Bytes = 5.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 49a62000, end 49fffaf1 ... OK

Starting kernel ...

<6>Booting Linux on physical CPU 0

<6>Initializing cgroup subsys cpuset

<6>Initializing cgroup subsys cpu

<5>Linux version 3.4.113-sun7i (root@armbian-builder) (gcc version 5.5.0 (Linaro GCC 5.5-2017.10) ) #2 SMP PREEMPT Thu Aug 29 22:52:29 CEST 2019

CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: sun7i

<6>Memory Reserved:

<6>	SYS  : 0x43000000 - 0x4300ffff  (  64 kB)

<6>	G2D  : 0x50000000 - 0x50ffffff  (  16 MB)

<6>	LCD  : 0x51000000 - 0x52ffffff  (  32 MB)

<6>cma: CMA: reserved 96 MiB at 43800000

Memory policy: ECC disabled, Data cache writealloc

<6>sunxi: Allwinner A20 (AW1651/sun7i) detected.

<7>On node 0 totalpages: 262144

<7>free_area_init_node: node 0, pgdat c0a4ae80, node_mem_map d3000000

<7>  DMA zone: 512 pages used for memmap

<7>  DMA zone: 0 pages reserved

<7>  DMA zone: 65024 pages, LIFO batch:15

<7>  Normal zone: 1008 pages used for memmap

<7>  Normal zone: 128016 pages, LIFO batch:31

<7>  HighMem zone: 528 pages used for memmap

<7>  HighMem zone: 67056 pages, LIFO batch:15

<6>PERCPU: Embedded 8 pages/cpu @d3808000 s8256 r8192 d16320 u32768

<7>pcpu-alloc: s8256 r8192 d16320 u32768 alloc=8*4096<c>

<7>pcpu-alloc: <c>[0] <c>0 <c>[0] <c>1 <c>

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

<5>Kernel command line: root=UUID=3f7dfd90-7b66-4bae-a2cd-d046ef9dc7e6 rootwait rootfstype=ext4 console=ttyS0,115200 console=tty1 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 loglevel=1 ubootpart=b769bf83-01 ubootsource=mmc usb-storage.quirks= cma=96M  cgroup_enable=memory swapaccount=1

<6>PID hash table entries: 4096 (order: 2, 16384 bytes)

<6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

<6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

<6>allocated 2097152 bytes of page_cgroup

<6>please try 'cgroup_disable=memory' option if you don't want memory cgroups

<6>Memory: 1024MB = 1024MB total

<5>Memory: 871524k/871524k available, 177052k reserved, 270336K highmem

<5>Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)

    lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)

    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)

    modules : 0xbf000000 - 0xbfe00000   (  14 MB)

      .text : 0xc0008000 - 0xc09a15ec   (9830 kB)

      .init : 0xc09a2000 - 0xc09da040   ( 225 kB)

      .data : 0xc09dc000 - 0xc0a53ab0   ( 479 kB)

       .bss : 0xc0a53ad4 - 0xc0c28db0   (1877 kB)

<6>SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1

<6>Preemptible hierarchical RCU implementation.

<6>	RCU dyntick-idle grace-period acceleration is enabled.

<6>	Additional per-CPU info printed with stalls.

<6>NR_IRQS:192

<6>Architected local timer running at 24.00MHz.

<6>sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms

<2>start_kernel(): bug: interrupts were enabled early

<6>Console: colour dummy device 80x30

<6>console [tty1] enabled

<6>Calibrating delay loop... <c>1816.98 BogoMIPS (lpj=9084928)

<6>pid_max: default: 32768 minimum: 301

<6>Mount-cache hash table entries: 512

<6>Initializing cgroup subsys cpuacct

<6>Initializing cgroup subsys memory

<6>Initializing cgroup subsys devices

<6>Initializing cgroup subsys freezer

<6>Initializing cgroup subsys blkio

<6>Initializing cgroup subsys perf_event

<6>CPU: Testing write buffer coherency: ok

<6>CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

<6>hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available

<6>Setting up static identity map for 0x406f83c0 - 0x406f8418

CPU1: Booted secondary processor

<6>CPU1: thread -1, cpu 1, socket 0, mpidr 80000001

<6>Brought up 2 CPUs

<6>SMP: Total of 2 processors activated (3640.52 BogoMIPS).

<6>devtmpfs: initialized

<6>dummy: 

<6>NET: Registered protocol family 16

<6>DMA: preallocated 256 KiB pool for atomic coherent allocations

<6>hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

<6>hw-breakpoint: maximum watchpoint size is 8 bytes.

<6>[ccu-inf] aw clock manager init

<6>[ccu-inf] aw_ccu_init

<6>[ccu-inf] script config pll3 to 297MHz

<6>[ccu-inf] script config pll4 to 300MHz

<6>[ccu-inf] script config pll6 to 600MHz

<6>[ccu-inf] script config pll7 to 297MHz

<6>[ccu-inf] script config pll8 to 336MHz

<6>Init eGon pin module V2.0

<6>bio: create slab <bio-0> at 0

<6>sunxi_gpio driver init ver 1.3

<6>sunxi_gpio_probe can't find script.bin '[gpio_para]' 'gpio_used'

<4>gpio-sunxi: probe of gpio-sunxi failed with error -4

<5>SCSI subsystem initialized

<7>libata version 3.00 loaded.

<6>usbcore: registered new interface driver usbfs

<6>usbcore: registered new interface driver hub

<6>usbcore: registered new device driver usb

<6>Linux media interface: v0.10

<6>Linux video capture interface: v2.00

<6>Advanced Linux Sound Architecture Driver Version 1.0.25.

<6>cfg80211: Calling CRDA to update world regulatory domain

<6>Switching to clocksource arch_sys_counter

<5>FS-Cache: Loaded

<6>CacheFiles: Loaded

[usb_manager]: CONFIG_USB_SW_SUNXI_USB0_OTG

WRN:L287(drivers/usb/sunxi_usb/manager/usb_manager.c):ERR: det_vbus pin is invaild

WRN:L426(drivers/usb/sunxi_usb/manager/usb_manager.c):ERR: check_usb_board_info failed

WRN:L480(drivers/usb/sunxi_usb/manager/usb_manager.c):ERR: get_usb_cfg failed

[sw_hcd0]: usb host driver initialize........

[sw_udc]: udc_init: version 20080411

<6>NET: Registered protocol family 2

<6>IP route cache hash table entries: 32768 (order: 5, 131072 bytes)

<6>TCP established hash table entries: 131072 (order: 8, 1048576 bytes)

<6>TCP bind hash table entries: 65536 (order: 7, 786432 bytes)

<6>TCP: Hash tables configured (established 131072 bind 65536)

<6>TCP: reno registered

<6>UDP hash table entries: 512 (order: 2, 16384 bytes)

<6>UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

<6>NET: Registered protocol family 1

<6>RPC: Registered named UNIX socket transport module.

<6>RPC: Registered udp transport module.

<6>RPC: Registered tcp transport module.

<6>RPC: Registered tcp NFSv4.1 backchannel transport module.

<6>Trying to unpack rootfs image as initramfs...

<6>Freeing initrd memory: 5748K

<6>audit: initializing netlink socket (disabled)

<5>type=2000 audit(0.950:1): initialized

highmem bounce pool size: 64 pages

<5>VFS: Disk quotas dquot_6.5.2

Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

<6>squashfs: version 4.0 (2009/01/31) Phillip Lougher

<5>NFS: Registering the id_resolver key type

<6>NTFS driver 2.1.30 [Flags: R/W].

<6>fuse init (API version 7.18)

<6>JFS: nTxBlock = 7621, nTxLock = 60973

<6>SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled

<6>Btrfs loaded

<6>msgmni has been set to 1377

<6>alg: No test for stdrng (krng)

<6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)

<6>io scheduler noop registered

<6>io scheduler deadline registered

<6>io scheduler cfq registered (default)

<6>sunxi disp driver loaded (/dev/disp api 1.0)

<6>Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled

<6>[uart]: used uart info.: 0x01

<6>[uart]: serial probe 0 irq 33 mapbase 0x01c28000

<6>sunxi-uart.0: ttyS0 at MMIO 0x1c28000 (irq = 33) is a U6_16550A

<6>console [ttyS0] enabled

<7>G2D: drv_g2d_init

<6>G2D: g2dmem: g2d_start=50000000, g2d_size=1000000

<6>G2D: head:d0000000,tail:d1000000

<6>G2D: Module initialized.major:250

<6>brd: module loaded

<6>loop: module loaded

[NAND] nand driver version: 0x2 0x9 

<4>Dev Sunxi softw311 nand magic does not match for MBR 1: softw411

<4>Dev Sunxi softw311 nand magic does not match for MBR 2:         

<4>Dev Sunxi softw311 nand magic does not match for MBR 3:         

<4>Dev Sunxi softw311 nand magic does not match for MBR 4:         

<4>Dev Sunxi softw311 nand header bad for all MBR copies, MBR corrupted or not present.

<4>Dev Sunxi softw411 nand: part 1, start 32768, size 32768

<4>Dev Sunxi softw411 nand: part 2, start 65536, size 32768

<4>Dev Sunxi softw411 nand: part 3, start 98304, size 32768

<4>Dev Sunxi softw411 nand: part 4, start 131072, size 1048576

<4>Dev Sunxi softw411 nand: part 5, start 1179648, size 2097152

<4>Dev Sunxi softw411 nand: part 6, start 3276800, size 32768

<4>Dev Sunxi softw411 nand: part 7, start 3309568, size 65536

<4>Dev Sunxi softw411 nand: part 8, start 3375104, size 1048576

<4>Dev Sunxi softw411 nand: part 9, start 4423680, size 524288

<4>Dev Sunxi softw411 nand: part 10, start 4947968, size 2785280

<6> nand: nand1 nand2 nand3 nand4 nand5 nand6 nand7 nand8 nand9 nand10

[NAND]nand driver, ok.

<4>AHCI is disabled in script.bin

<3>[spi-err] Get spi devices number failed

<3>[spi-err] register spi devices board info failed 

<4>spi: cannot find any using configuration for                     all 4 spi controllers, return directly!

<6>bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

<6>Fixed MDIO Bus: probed

<6>emac driver is disabled

<4>emac_init fetch emac using configuration failed

<6>gmac driver is disabled

<6>PPP generic driver version 2.4.2

<6>PPP BSD Compression module registered

<6>PPP Deflate Compression module registered

<6>PPP MPPE Compression module registered

<6>NET: Registered protocol family 24

<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed

WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed

WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed

WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed

[sw-ehci1]: open clock

[sw-ehci1]: Set USB Power ON

<6>sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver

<6>sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 1

<6>sw-ehci sw-ehci.1: irq 71, io mem 0x01c14000

<6>sw-ehci sw-ehci.1: USB 2.0 started, EHCI 1.00

<6>usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

<6>usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

<6>usb usb1: Product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver

<6>usb usb1: Manufacturer: Linux 3.4.113-sun7i ehci_hcd

<6>usb usb1: SerialNumber: sw-ehci

<6>hub 1-0:1.0: USB hub found

<6>hub 1-0:1.0: 1 port detected

[sw-ohci1]: open clock

<6>sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver

<6>sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 2

<6>sw-ohci sw-ohci.1: irq 96, io mem 0x01c14400

<6>usb usb2: New USB device found, idVendor=1d6b, idProduct=0001

<6>usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

<6>usb usb2: Product: SW USB2.0 'Open' Host Controller (OHCI) Driver

<6>usb usb2: Manufacturer: Linux 3.4.113-sun7i ohci_hcd

<6>usb usb2: SerialNumber: sw-ohci

<6>hub 2-0:1.0: USB hub found

<6>hub 2-0:1.0: 1 port detected

<1>Unable to handle kernel NULL pointer dereference at virtual address 00000000

<1>pgd = c0004000

<1>[00000000] *pgd=00000000

<0>Internal error: Oops: 80000005 [#1] PREEMPT SMP ARM

[    1.637692] Internal error: Oops: 80000005 [#1] PREEMPT SMP ARM
<d>Modules linked in:[    1.645456] Modules linked in:


CPU: 0    Not tainted  (3.4.113-sun7i #2)

[    1.652446] CPU: 0    Not tainted  (3.4.113-sun7i #2)
PC is at 0x0

[    1.658723] PC is at 0x0
LR is at sw_start_ehci+0x14/0x48

[    1.664221] LR is at sw_start_ehci+0x14/0x48
pc : [<00000000>]    lr : [<c04f2564>]    psr: 20000013

sp : ef03be90  ip : 00000002  fp : 00000000

[    1.677345] pc : [<00000000>]    lr : [<c04f2564>]    psr: 20000013
[    1.677350] sp : ef03be90  ip : 00000002  fp : 00000000
r10: c0a32260  r9 : c0b1ef74  r8 : c0a516c8

[    1.692745] r10: c0a32260  r9 : c0b1ef74  r8 : c0a516c8
r7 : c0a32760  r6 : 00000048  r5 : c0b1f0f0  r4 : c0b1f0f0

[    1.703180] r7 : c0a32760  r6 : 00000048  r5 : c0b1f0f0  r4 : c0b1f0f0
r3 : 00000000  r2 : c0a3277c  r1 : 00000000  r0 : c0b1f0f0

[    1.714919] r3 : 00000000  r2 : c0a3277c  r1 : 00000000  r0 : c0b1f0f0
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel

[    1.727438] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c5387d  Table: 6e94006a  DAC: 00000015

[    1.739179] Control: 10c5387d  Table: 6e94006a  DAC: 00000015


LR: 0xc04f24e4:

[    1.746582] 
[    1.746584] LR: 0xc04f24e4:
24e4 [    1.751307] 24e4  eaffffe5 eaffffe5 e5902028 e5902028 e30e3f30 e30e3f30 e34c30b1 e34c30b1 e5930000 e5930000 e592114c e592114c eafd8579 eafd8579 e92d4010 e92d4010


2504 [    1.766533] 2504  e30e4f30 e30e4f30 e34c40b1 e34c40b1 e2840008 e2840008 ebf0045e ebf0045e e5940004 e5940004 e3a01080 e3a01080 ebf00364 ebf00364 e5940000 e5940000


2524 [    1.781757] 2524  e8bd4010 e8bd4010 eafd961a eafd961a e92d4010 e92d4010 e590310c e590310c e593300c e593300c f57ff04f f57ff04f e5901138 e5901138 e1a001a3 e1a001a3


2544 [    1.796980] 2544  ebfb6555 ebfb6555 e1a00001 e1a00001 e8bd8010 e8bd8010 e92d4010 e92d4010 e3a01000 e3a01000 e1a04000 e1a04000 e5903090 e5903090 e12fff33 e12fff33


2564 [    1.812204] 2564  e59430a0 e59430a0 e1a00004 e1a00004 e3a01001 e3a01001 e12fff33 e12fff33 e594309c e594309c e1a00004 e1a00004 e3a01001 e3a01001 e12fff33 e12fff33


2584 [    1.827428] 2584  e5943098 e5943098 e1a00004 e1a00004 e3a01001 e3a01001 e8bd4010 e8bd4010 e12fff13 e12fff13 e92d4010 e92d4010 e3a01000 e3a01000 e1a04000 e1a04000


25a4 [    1.842652] 25a4  e5903098 e5903098 e12fff33 e12fff33 e594309c e594309c e1a00004 e1a00004 e3a01000 e3a01000 e12fff33 e12fff33 e59430a0 e59430a0 e1a00004 e1a00004


25c4 [    1.857876] 25c4  e3a01000 e3a01000 e12fff33 e12fff33 e5943094 e5943094 e1a00004 e1a00004 e3a01000 e3a01000 e8bd4010 e8bd4010 e12fff13 e12fff13 e7eb0052 e7eb0052




SP: 0xef03be10:

[    1.874322] 
[    1.874325] SP: 0xef03be10:
be10 [    1.879051] be10  00001000 00001000 ee91b7c0 ee91b7c0 00000000 00000000 c06f7be8 c06f7be8 00001000 00001000 c00d5e00 c00d5e00 f0535000 f0535000 f0534fff f0534fff


be30 [    1.894279] be30  00000000 00000000 20000013 20000013 ffffffff ffffffff ef03be7c ef03be7c c0a516c8 c0a516c8 c000e998 c000e998 c0b1f0f0 c0b1f0f0 00000000 00000000


be50 [    1.909507] be50  c0a3277c c0a3277c 00000000 00000000 c0b1f0f0 c0b1f0f0 c0b1f0f0 c0b1f0f0 00000048 00000048 c0a32760 c0a32760 c0a516c8 c0a516c8 c0b1ef74 c0b1ef74


be70 [    1.924735] be70  c0a32260 c0a32260 00000000 00000000 00000002 00000002 ef03be90 ef03be90 c04f2564 c04f2564 00000000 00000000 20000013 20000013 ffffffff ffffffff


be90 [    1.939964] be90  ee81c400 ee81c400 c04f28d8 c04f28d8 ee91b200 ee91b200 00000000 00000000 c0b16c28 c0b16c28 c0a32260 c0a32260 00000000 00000000 c0a32260 c0a32260


beb0 [    1.955192] beb0  c0b16c28 c0b16c28 c0a4fa90 c0a4fa90 c0a31fe8 c0a31fe8 c0b16c04 c0b16c04 00000000 00000000 00000000 00000000 d3805240 d3805240 c0456e38 c0456e38


bed0 [    1.970421] bed0  d3805240 d3805240 c06f7b20 c06f7b20 c0a31fe8 c0a31fe8 00000000 00000000 c0a32260 c0a32260 c04570f0 c04570f0 00000000 00000000 c0b16c04 c0b16c04


bef0 [    1.985649] bef0  c09f6780 c09f6780 c0455174 c0455174 ef023878 ef023878 ee8768bc ee8768bc c0a32260 c0a32260 c0a32260 c0a32260 c0a32294 c0a32294 c0456d18 c0456d18




R0: 0xc0b1f070:

[    2.002092] 
[    2.002094] R0: 0xc0b1f070:
f070 [    2.006821] f070  f1c14000 f1c14000 c0a323f0 c0a323f0 ee84e400 ee84e400 c0a54860 c0a54860 c0a54428 c0a54428 c0a54450 c0a54450 c0a54478 c0a54478 00000001 00000001


f090 [    2.022049] f090  ee876900 ee876900 5f627375 5f627375 5f767264 5f767264 73756276 73756276 6970675f 6970675f 0000006f 0000006f 00000000 00000000 00000000 00000000


f0b0 [    2.037278] f0b0  00000000 00000000 00000008 00000008 00000006 00000006 00000001 00000001 00000000 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000


f0d0 [    2.052506] f0d0  00000001 00000001 00000001 00000001 00000001 00000001 c04fed28 c04fed28 c04fec38 c04fec38 c04ff084 c04ff084 c04ff008 c04ff008 c04feb00 c04feb00


f0f0 [    2.067734] f0f0  00000002 00000002 652d7773 652d7773 32696368 32696368 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f110 [    2.082962] f110  00000000 00000000 f1c1c000 f1c1c000 c0a32258 c0a32258 ee81c400 ee81c400 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f130 [    2.098189] f130  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f150 [    2.113417] f150  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000




R2: 0xc0a326fc:

[    2.129860] 
[    2.129862] R2: 0xc0a326fc:
26fc [    2.134589] 26fc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000002 00000002 c0a32720 c0a32720 00000000 00000000


271c [    2.149818] 271c  00000000 00000000 01c1c400 01c1c400 01c1c4ff 01c1c4ff 00000000 00000000 00000200 00000200 00000000 00000000 00000000 00000000 00000000 00000000


273c [    2.165046] 273c  00000061 00000061 00000061 00000061 00000000 00000000 00000400 00000400 00000000 00000000 00000000 00000000 00000000 00000000 ffffffff ffffffff


275c [    2.180274] 275c  00000000 00000000 01c1c000 01c1c000 01c1c0ff 01c1c0ff ee91b180 ee91b180 00000200 00000200 c09f6764 c09f6764 c0a2b6c8 c0a2b6c8 00000000 00000000


277c [    2.195501] 277c  00000048 00000048 00000048 00000048 ee91b180 ee91b180 00000400 00000400 00000000 00000000 00000000 00000000 00000000 00000000 01c14000 01c14000


279c [    2.210729] 279c  01c140ff 01c140ff ee920680 ee920680 00000200 00000200 c09f6764 c09f6764 c0a32088 c0a32088 00000000 00000000 00000047 00000047 00000047 00000047


27bc [    2.225958] 27bc  ee920680 ee920680 00000400 00000400 00000000 00000000 00000000 00000000 00000000 00000000 ffffffff ffffffff 00000000 00000000 00050070 00050070


27dc [    2.241186] 27dc  0a000000 0a000000 00000000 00000000 00000024 00000024 00000000 00000000 00000000 00000000 00000000 00000000 c090cb10 c090cb10 00000000 00000000




R4: 0xc0b1f070:

[    2.257630] 
[    2.257632] R4: 0xc0b1f070:
f070 [    2.262359] f070  f1c14000 f1c14000 c0a323f0 c0a323f0 ee84e400 ee84e400 c0a54860 c0a54860 c0a54428 c0a54428 c0a54450 c0a54450 c0a54478 c0a54478 00000001 00000001


f090 [    2.277587] f090  ee876900 ee876900 5f627375 5f627375 5f767264 5f767264 73756276 73756276 6970675f 6970675f 0000006f 0000006f 00000000 00000000 00000000 00000000


f0b0 [    2.292815] f0b0  00000000 00000000 00000008 00000008 00000006 00000006 00000001 00000001 00000000 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000


f0d0 [    2.308042] f0d0  00000001 00000001 00000001 00000001 00000001 00000001 c04fed28 c04fed28 c04fec38 c04fec38 c04ff084 c04ff084 c04ff008 c04ff008 c04feb00 c04feb00


f0f0 [    2.323270] f0f0  00000002 00000002 652d7773 652d7773 32696368 32696368 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f110 [    2.338498] f110  00000000 00000000 f1c1c000 f1c1c000 c0a32258 c0a32258 ee81c400 ee81c400 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f130 [    2.353726] f130  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f150 [    2.368954] f150  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000




R5: 0xc0b1f070:

[    2.385396] 
[    2.385399] R5: 0xc0b1f070:
f070 [    2.390124] f070  f1c14000 f1c14000 c0a323f0 c0a323f0 ee84e400 ee84e400 c0a54860 c0a54860 c0a54428 c0a54428 c0a54450 c0a54450 c0a54478 c0a54478 00000001 00000001


f090 [    2.405353] f090  ee876900 ee876900 5f627375 5f627375 5f767264 5f767264 73756276 73756276 6970675f 6970675f 0000006f 0000006f 00000000 00000000 00000000 00000000


f0b0 [    2.420581] f0b0  00000000 00000000 00000008 00000008 00000006 00000006 00000001 00000001 00000000 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000


f0d0 [    2.435809] f0d0  00000001 00000001 00000001 00000001 00000001 00000001 c04fed28 c04fed28 c04fec38 c04fec38 c04ff084 c04ff084 c04ff008 c04ff008 c04feb00 c04feb00


f0f0 [    2.451037] f0f0  00000002 00000002 652d7773 652d7773 32696368 32696368 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f110 [    2.466265] f110  00000000 00000000 f1c1c000 f1c1c000 c0a32258 c0a32258 ee81c400 ee81c400 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f130 [    2.481492] f130  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


f150 [    2.496720] f150  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000




R7: 0xc0a326e0:

[    2.513162] 
[    2.513164] R7: 0xc0a326e0:
26e0 [    2.517891] 26e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


2700 [    2.533118] 2700  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000002 00000002 c0a32720 c0a32720 00000000 00000000 00000000 00000000


2720 [    2.548346] 2720  01c1c400 01c1c400 01c1c4ff 01c1c4ff 00000000 00000000 00000200 00000200 00000000 00000000 00000000 00000000 00000000 00000000 00000061 00000061


2740 [    2.563574] 2740  00000061 00000061 00000000 00000000 00000400 00000400 00000000 00000000 00000000 00000000 00000000 00000000 ffffffff ffffffff 00000000 00000000


2760 [    2.578802] 2760  01c1c000 01c1c000 01c1c0ff 01c1c0ff ee91b180 ee91b180 00000200 00000200 c09f6764 c09f6764 c0a2b6c8 c0a2b6c8 00000000 00000000 00000048 00000048


2780 [    2.594030] 2780  00000048 00000048 ee91b180 ee91b180 00000400 00000400 00000000 00000000 00000000 00000000 00000000 00000000 01c14000 01c14000 01c140ff 01c140ff


27a0 [    2.609258] 27a0  ee920680 ee920680 00000200 00000200 c09f6764 c09f6764 c0a32088 c0a32088 00000000 00000000 00000047 00000047 00000047 00000047 ee920680 ee920680


27c0 [    2.624486] 27c0  00000400 00000400 00000000 00000000 00000000 00000000 00000000 00000000 ffffffff ffffffff 00000000 00000000 00050070 00050070 0a000000 0a000000




R8: 0xc0a51648:

[    2.640928] 
[    2.640931] R8: 0xc0a51648:
1648 [    2.645658] 1648  00000124 00000124 00000000 00000000 c0907da4 c0907da4 c079dfc0 c079dfc0 c090a698 c090a698 c090a648 c090a648 000000ba 000000ba 00000000 00000000


1668 [    2.660886] 1668  c0907da4 c0907da4 c079e0a8 c079e0a8 c090aed4 c090aed4 c090add8 c090add8 000006e8 000006e8 00000000 00000000 c0907da4 c0907da4 c079e0e0 c079e0e0


1688 [    2.676114] 1688  c090af98 c090af98 c090af40 c090af40 00000092 00000092 00000000 00000000 c0907da4 c0907da4 c079e4d8 c079e4d8 c090b000 c090b000 c090afb4 c090afb4


16a8 [    2.691342] 16a8  000000f3 000000f3 00000000 00000000 c0907da4 c0907da4 c079e4bc c079e4bc c090b000 c090b000 c090afd4 c090afd4 0000010e 0000010e 00000000 00000000


16c8 [    2.706570] 16c8  c090bf08 c090bf08 c079ece8 c079ece8 c090bf14 c090bf14 c090b3e0 c090b3e0 00000097 00000097 00000000 00000000 c090bf08 c090bf08 c079ea54 c079ea54


16e8 [    2.721798] 16e8  c090bf14 c090bf14 c090b438 c090b438 000000da 000000da 00000000 00000000 c090bf08 c090bf08 c079ea54 c079ea54 c090bf14 c090bf14 c090b510 c090b510


1708 [    2.737026] 1708  00000112 00000112 00000000 00000000 c090bf08 c090bf08 c079ec34 c079ec34 c090bf88 c090bf88 c090b5f8 c090b5f8 000000a1 000000a1 00000000 00000000


1728 [    2.752255] 1728  c090bf08 c090bf08 c079eb74 c079eb74 c090bb4c c090bb4c c0932d70 c0932d70 00000148 00000148 00000000 00000000 c090bf08 c090bf08 c079ebc8 c079ebc8




R9: 0xc0b1eef4:

[    2.768697] 
[    2.768699] R9: 0xc0b1eef4:
eef4 [    2.773425] eef4  00000000 00000000 00000000 00000000 00000001 00000001 00000001 00000001 eec40088 eec40088 00000000 00000000 eec40000 eec40000 ee93d000 ee93d000


ef14 [    2.788653] ef14  00000000 00000000 c0b1ef18 c0b1ef18 c0b1ef18 c0b1ef18 00000001 00000001 00000000 00000000 00000000 00000000 eec05f68 eec05f68 ee875b40 ee875b40


ef34 [    2.803881] ef34  0f800000 0f800000 00000000 00000000 c0b1ef3c c0b1ef3c c0b1ef3c c0b1ef3c 00000000 00000000 00000000 00000000 c09fc184 c09fc184 00000000 00000000


ef54 [    2.819109] ef54  00000001 00000001 00000001 00000001 00000000 00000000 c079e9ec c079e9ec c0b1ef64 c0b1ef64 c0b1ef64 c0b1ef64 0f800000 0f800000 00000080 00000080


ef74 [    2.834337] ef74  00000000 00000000 c0b1efa8 c0b1efa8 c0b1f0f0 c0b1f0f0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


ef94 [    2.849564] ef94  c0b1f04c c0b1f04c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000001 652d7773 652d7773 31696368 31696368


efb4 [    2.864792] efb4  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 f1c14000 f1c14000 c0a320c0 c0a320c0


efd4 [    2.880020] efd4  ee84dc00 ee84dc00 c0a5484c c0a5484c c0a54428 c0a54428 c0a54450 c0a54450 00000000 00000000 00000001 00000001 ee876400 ee876400 5f627375 5f627375




R10: 0xc0a321e0:

[    2.896550] 
[    2.896552] R10: 0xc0a321e0:
21e0 [    2.901365] 21e0  00000000 00000000 00000000 00000000 c0a327d0 c0a327d0 00000000 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000 ee876dc0 ee876dc0


2200 [    2.916593] 2200  ee876240 ee876240 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


2220 [    2.931821] 2220  00000000 00000000 c0a32224 c0a32224 c0a32224 c0a32224 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


2240 [    2.947049] 2240  00000000 00000000 00000000 00000000 00000002 00000002 c0a32798 c0a32798 00000000 00000000 00000000 00000000 c079f078 c079f078 00000002 00000002


2260 [    2.962277] 2260  c0a2c228 c0a2c228 ef1de780 ef1de780 ee91b180 ee91b180 ef026480 ef026480 ee8e5e14 ee8e5e14 c0a2c230 c0a2c230 ef026480 ef026480 c0a2c0c0 c0a2c0c0


2280 [    2.977505] 2280  ee91b200 ee91b200 00000003 00000003 00000007 00000007 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000


22a0 [    2.992733] 22a0  c0a322a0 c0a322a0 c0a322a0 c0a322a0 ef03c000 ef03c000 c0a2c3a8 c0a2c3a8 c0a31fe8 c0a31fe8 c0b1f0f0 c0b1f0f0 00000000 00000000 00000000 00000000


22c0 [    3.007962] 22c0  00000000 00000000 00000000 00000000 c0a2c804 c0a2c804 ee8e5e70 ee8e5e70 7fffffff 7fffffff 00000000 00000000 00000000 00000000 c0a322dc c0a322dc


<0>Process swapper/0 (pid: 1, stack limit = 0xef03a2f0)

[    3.027699] Process swapper/0 (pid: 1, stack limit = 0xef03a2f0)
<0>Stack: (0xef03be90 to 0xef03c000)

[    3.037014] Stack: (0xef03be90 to 0xef03c000)
<0>be80:                                     ee81c400 c04f28d8 ee91b200 00000000

[    3.048494] be80:                                     ee81c400 c04f28d8 ee91b200 00000000
<0>bea0: c0b16c28 c0a32260 00000000 c0a32260 c0b16c28 c0a4fa90 c0a31fe8 c0b16c04

[    3.063797] bea0: c0b16c28 c0a32260 00000000 c0a32260 c0b16c28 c0a4fa90 c0a31fe8 c0b16c04
<0>bec0: 00000000 00000000 d3805240 c0456e38 d3805240 c06f7b20 c0a31fe8 00000000

[    3.079101] bec0: 00000000 00000000 d3805240 c0456e38 d3805240 c06f7b20 c0a31fe8 00000000
<0>bee0: c0a32260 c04570f0 00000000 c0b16c04 c09f6780 c0455174 ef023878 ee8768bc

[    3.094405] bee0: c0a32260 c04570f0 00000000 c0b16c04 c09f6780 c0455174 ef023878 ee8768bc
<0>bf00: c0a32260 c0a32260 c0a32294 c0456d18 c0a32268 c0a32260 c0a2c3a8 c0456190

[    3.109709] bf00: c0a32260 c0a32260 c0a32294 c0456d18 c0a32268 c0a32260 c0a2c3a8 c0456190
<0>bf20: c0a32268 c0a2c228 c0a32260 c0454688 c0a32268 00000000 c0ae2d40 ef03a000

[    3.125013] bf20: c0a32268 c0a2c228 c0a32260 c0454688 c0a32268 00000000 c0ae2d40 ef03a000
<0>bf40: c0ae2d40 00000000 d3805240 00000002 00000038 c0a32258 c0a32260 c09f6764

[    3.140317] bf40: c0ae2d40 00000000 d3805240 00000002 00000038 c0a32258 c0a32260 c09f6764
<0>bf60: c09f6780 c09d0778 d3805240 c0458694 c0b1efa0 ef03a000 c0a53b00 c09d6d38

[    3.155620] bf60: c09f6780 c09d0778 d3805240 c0458694 c0b1efa0 ef03a000 c0a53b00 c09d6d38
<0>bf80: c09d0770 c09c0e40 c09d0778 c09c0f10 c0a53b00 c0008698 00000000 c0a4cc10

[    3.170924] bf80: c09d0770 c09c0e40 c09d0778 c09c0f10 c0a53b00 c0008698 00000000 c0a4cc10
<0>bfa0: c089b7d8 00000000 00000006 c08a7d8c c09f7b8c 000000f4 c0a53b00 c0a53b00

[    3.186228] bfa0: c089b7d8 00000000 00000006 c08a7d8c c09f7b8c 000000f4 c0a53b00 c0a53b00
<0>bfc0: c09d6d38 c09d0770 00000007 c09d0778 d3805240 c09a2a0c 00000006 00000006

[    3.201532] bfc0: c09d6d38 c09d0770 00000007 c09d0778 d3805240 c09a2a0c 00000006 00000006
<0>bfe0: c09a2284 00000000 00000000 00000013 00000000 c000f804 ffdfffff fffffffb

[    3.216836] bfe0: c09a2284 00000000 00000000 00000013 00000000 c000f804 ffdfffff fffffffb
[<c04f2564>] (sw_start_ehci+0x14/0x48) from [<c04f28d8>] (sw_ehci_hcd_probe+0xe4/0x2d0)

[    3.232769] [<c04f2564>] (sw_start_ehci+0x14/0x48) from [<c04f28d8>] (sw_ehci_hcd_probe+0xe4/0x2d0)
[<c04f28d8>] (sw_ehci_hcd_probe+0xe4/0x2d0) from [<c0456e38>] (driver_probe_device+0xb8/0x370)

[    3.250164] [<c04f28d8>] (sw_ehci_hcd_probe+0xe4/0x2d0) from [<c0456e38>] (driver_probe_device+0xb8/0x370)
[<c0456e38>] (driver_probe_device+0xb8/0x370) from [<c0455174>] (bus_for_each_drv+0x60/0x94)

[    3.267990] [<c0456e38>] (driver_probe_device+0xb8/0x370) from [<c0455174>] (bus_for_each_drv+0x60/0x94)
[<c0455174>] (bus_for_each_drv+0x60/0x94) from [<c0456d18>] (device_attach+0x98/0xac)

[    3.285033] [<c0455174>] (bus_for_each_drv+0x60/0x94) from [<c0456d18>] (device_attach+0x98/0xac)
[<c0456d18>] (device_attach+0x98/0xac) from [<c0456190>] (bus_probe_device+0x84/0xa8)

[    3.301468] [<c0456d18>] (device_attach+0x98/0xac) from [<c0456190>] (bus_probe_device+0x84/0xa8)
[<c0456190>] (bus_probe_device+0x84/0xa8) from [<c0454688>] (device_add+0x4c4/0x5fc)

[    3.317816] [<c0456190>] (bus_probe_device+0x84/0xa8) from [<c0454688>] (device_add+0x4c4/0x5fc)
[<c0454688>] (device_add+0x4c4/0x5fc) from [<c0458694>] (platform_device_add+0x110/0x1e4)

[    3.334513] [<c0454688>] (device_add+0x4c4/0x5fc) from [<c0458694>] (platform_device_add+0x110/0x1e4)
[<c0458694>] (platform_device_add+0x110/0x1e4) from [<c09c0f10>] (sw_hci_sunxi_init+0xd0/0xf8)

[    3.352082] [<c0458694>] (platform_device_add+0x110/0x1e4) from [<c09c0f10>] (sw_hci_sunxi_init+0xd0/0xf8)
[<c09c0f10>] (sw_hci_sunxi_init+0xd0/0xf8) from [<c0008698>] (do_one_initcall+0x10c/0x164)

[    3.369736] [<c09c0f10>] (sw_hci_sunxi_init+0xd0/0xf8) from [<c0008698>] (do_one_initcall+0x10c/0x164)
[<c0008698>] (do_one_initcall+0x10c/0x164) from [<c09a2a0c>] (kernel_init+0x190/0x218)

[    3.386697] [<c0008698>] (do_one_initcall+0x10c/0x164) from [<c09a2a0c>] (kernel_init+0x190/0x218)
[<c09a2a0c>] (kernel_init+0x190/0x218) from [<c000f804>] (kernel_thread_exit+0x0/0x8)

[    3.403223] [<c09a2a0c>] (kernel_init+0x190/0x218) from [<c000f804>] (kernel_thread_exit+0x0/0x8)
<0>Code: bad PC value

[    3.414107] Code: bad PC value
<4>---[ end trace bf4f5d4f7ba964d2 ]---

[    3.420932] ---[ end trace bf4f5d4f7ba964d2 ]---
<0>Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b


[    3.432415] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    3.432421] 
<2>CPU1: stopping

[    3.443238] CPU1: stopping
[<c001543c>] (unwind_backtrace+0x0/0x12c) from [<c0013f68>] (handle_IPI+0x1b4/0x1c8)

[    3.453436] [<c001543c>] (unwind_backtrace+0x0/0x12c) from [<c0013f68>] (handle_IPI+0x1b4/0x1c8)
[<c0013f68>] (handle_IPI+0x1b4/0x1c8) from [<c0008510>] (gic_handle_irq+0x54/0x58)

[    3.469525] [<c0013f68>] (handle_IPI+0x1b4/0x1c8) from [<c0008510>] (gic_handle_irq+0x54/0x58)
[<c0008510>] (gic_handle_irq+0x54/0x58) from [<c000e880>] (__irq_svc+0x40/0x74)

[    3.485181] [<c0008510>] (gic_handle_irq+0x54/0x58) from [<c000e880>] (__irq_svc+0x40/0x74)
Exception stack(0xef065f88 to 0xef065fd0)

[    3.497275] Exception stack(0xef065f88 to 0xef065fd0)
5f80:      

 


 

 

Posted

So, I might be going into the right direction. Since the kernel panic happened just after trying to load the USB stuff (ohci), I built the kernel without the OHCI and EHCI modules and I was able to boot into a debian minimal terminal appearing on the LCD.

From an old linux-sunxi mailing list post, it looks like I might have the wrong pin definition.


My boot log showed those lines, so I'll check into it.

<6>ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
<6>ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed

If someone could answer a question about the build process in armbian, that would help. Since I'm trying to build the legacy (3.4.113-sun7i) kernel, shouldn't the .fex file be enough ? Do I have to write a defconfig and / or dts file ?

Thanks

 

Posted

Hi everyone,

 

So I guess my board is working now and I have the answer to my question : you only need to modify the fex file is you're building the legacy kernel.
My previous boot error (the kernel panic) was because the usb_drv_vbus_gpio for [usbc2] was undefined. Modified the fex file with this line to get it to boot with all usb ports working :
 

usb_drv_vbus_gpio = port:PH03<1><0><default><0>

I can boot to the desktop, now it's a matter of building modules etc... for the various components of this board.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines