[Android Software/Hacking General [Developers Only]] rom1nux:
Hello,

Yip ha, i got a full bootlog from F20

Setup

Quick 2N2222 adapter, badly build

Video

To check the boot timing

http://youtu.be/jN5YoBgeSzM

Bootlog

HELLO! BOOT0 is starting!
initializing SDRAM OK.
Succeed in opening nand flash.
Succeed in reading Boot1 file head.
The size of Boot1 is 0x00030000.
The file stored in 0X00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
begin to init file system
bat vol = 3951
1
mount successfully.

[MSG]: BootMain start

0

The all optional count is 1

only one os to boot

WRN:L412(BootOS\BootOS.c):test for multi os boot with display

WRN:L243(Common\ui\display_interface\display_interface.c):ERR: LCD not open

WRN:L60(..\OSAL_Cache.c):Length is ZERO!

start address = 0x80008000

jump to

[ 0.000000] timer_set_mode: periodic
[ 0.000000] Console: colour dummy device 80x30
[ 0.220000] bio: create slab <bio-0> at 0
[ 0.510000] request fb success!
[ 0.520000] [UART]debug disable!
[ 0.560000] The 0 disk name = BOOTFS, class name = DISK, disk size = 32768
[ 0.570000] The 1 disk name = LROOTFS, class name = DISK, disk size = 32768
[ 0.570000] The 2 disk name = LSYSTEMFS, class name = DISK, disk size = 524288
[ 0.580000] The 3 disk name = LDATAFS, class name = DISK, disk size = 1048576
[ 0.590000] The 4 disk name = UDISK, class name = DISK, disk size = 0
[ 0.600000] The 4 disk size = 2291712
[ 0.600000] part total count = 5
[ 0.690000] ------ pmem ioremap cached -------
[ 0.700000] CONFIG_USB_SW_SUN3I_USB0_OTG
[ 0.700000] [sw_hcd0]: usb host driver initialize........
[ 0.710000] [sw_hcd0]: [usb host]: usb_vbase = 0xf1c13000
[ 0.720000] [sw_hcd0]: [usb host]: sram_vbase = 0xf1c00000
[ 0.720000] [sw_hcd0]: [sw_hcd_host0]: close_usb_clock_ex
[ 0.730000] [sw_hcd0]: [sw_hcd_host0]: open_usb_clock
[ 0.770000] [sw_hcd0]: usbc_init_state = 1
[ 0.770000] [sw_hcd0]: platform is usb host
[ 0.770000] [sw_hcd0]: sw_hcd_host0: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
[ 0.790000] [sw_hcd0]: sw_hcd_host0: hw_ep 0shared, max 64
[ 0.790000] [sw_hcd0]: sw_hcd_host0: hw_ep 1tx, max 512
[ 0.800000] [sw_hcd0]: sw_hcd_host0: hw_ep 1rx, max 512
[ 0.810000] [sw_hcd0]: sw_hcd_host0: hw_ep 2tx, max 512
[ 0.810000] [sw_hcd0]: sw_hcd_host0: hw_ep 2rx, max 512
[ 0.820000] [sw_hcd0]: sw_hcd_host0: hw_ep 3tx, max 512
[ 0.820000] [sw_hcd0]: sw_hcd_host0: hw_ep 3rx, max 512
[ 0.830000] [sw_hcd0]: sw_hcd_host0: hw_ep 4tx, max 512
[ 0.840000] [sw_hcd0]: sw_hcd_host0: hw_ep 4rx, max 512
[ 0.840000] [sw_hcd0]: sw_hcd_host0: hw_ep 5tx, max 512
[ 0.850000] [sw_hcd0]: sw_hcd_host0: hw_ep 5rx, max 512
[ 0.850000] [sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host mode controller at f1c13000 using PIO, IRQ 38
[ 0.870000] WRN:L271(drivers/usb/sun3i_usb/hcd/core/sw_hcd_core.c):ERR: hcd is not enable
[ 0.880000] [sw_hcd0]: sw_usb_host0_disable start
[ 0.880000] -------sw_hcd0_soft_disconnect---------
[ 0.880000] [sw_hcd0]: INFO : USB VBus power OFF
[ 0.880000] WRN:L370(drivers/usb/sun3i_usb/hcd/core/sw_hcd_core.c):ERR: hcd is not enable
[ 0.890000] [sw_hcd0]: [sw_hcd_host0]: close_usb_clock
[ 0.900000] [sw_hcd0]: sw_usb_host0_disable end
[ 0.900000] [sw_hcd1]: usb host driver initialize........
[ 0.910000] [sw_hcd1]: [usb host]: usb_vbase = 0xf1c14000
[ 0.920000] [sw_hcd1]: [usb host]: sram_vbase = 0xf1c00000
[ 0.920000] [sw_hcd1]: open_usb_clock
[ 0.970000] [sw_hcd1]: usbc_init_state = 0
[ 0.970000] [sw_hcd1]: platform is usb host
[ 0.970000] [sw_hcd1]: sw_hcd_host1: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
[ 0.990000] [sw_hcd1]: sw_hcd_host1: hw_ep 0shared, max 64
[ 0.990000] [sw_hcd1]: sw_hcd_host1: hw_ep 1tx, max 512
[ 1.000000] [sw_hcd1]: sw_hcd_host1: hw_ep 1rx, max 512
[ 1.010000] [sw_hcd1]: sw_hcd_host1: hw_ep 2tx, max 512
[ 1.010000] [sw_hcd1]: sw_hcd_host1: hw_ep 2rx, max 512
[ 1.020000] [sw_hcd1]: sw_hcd_host1: hw_ep 3tx, max 512
[ 1.020000] [sw_hcd1]: sw_hcd_host1: hw_ep 3rx, max 512
[ 1.030000] [sw_hcd1]: sw_hcd_init_controller: sw_hcd_host1: USB Host mode controller at f1c14000 using PIO, IRQ 39
[ 1.040000] [sw_hcd1]: INFO : USB VBus power ON
[ 1.050000] sw_usb_disable_hcd1 start, clk_is_open = 1
[ 1.060000] sw_hcd_stop: sw_hcd disabled
[ 1.060000] [sw_hcd1]: INFO : USB VBus power OFF
[ 1.060000] [sw_hcd1]: close_usb_clock
[ 1.060000] -------sw_hcd1_soft_disconnect---------
[ 1.070000] sw_usb_disable_hcd1 end
[ 1.070000] [sw_hcd2]: usb host driver initialize........
[ 1.080000] [sw_hcd2]: [usb host]: usb_vbase = 0xf1c1e000
[ 1.080000] [sw_hcd2]: [usb host]: sram_vbase = 0xf1c00000
[ 1.090000] [sw_hcd2]: open_usb_clock
[ 1.130000] [sw_hcd2]: open_usb_clock, clk_is_open = 1
[ 1.130000] [sw_hcd2]: usbc_init_state = 1
[ 1.140000] [sw_hcd2]: platform is usb host
[ 1.140000] [sw_hcd2]: sw_hcd_host2: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
[ 1.150000] [sw_hcd2]: sw_hcd_host2: hw_ep 0shared, max 64
[ 1.160000] [sw_hcd2]: sw_hcd_host2: hw_ep 1tx, max 512
[ 1.170000] [sw_hcd2]: sw_hcd_host2: hw_ep 1rx, max 512
[ 1.170000] [sw_hcd2]: sw_hcd_host2: hw_ep 2tx, max 512
[ 1.180000] [sw_hcd2]: sw_hcd_host2: hw_ep 2rx, max 512
[ 1.180000] [sw_hcd2]: sw_hcd_host2: hw_ep 3tx, max 512
[ 1.190000] [sw_hcd2]: sw_hcd_host2: hw_ep 3rx, max 512
[ 1.200000] [sw_hcd2]: sw_hcd_init_controller: sw_hcd_host2: USB Host mode controller at f1c1e000 using PIO, IRQ 40
[ 1.210000] [sw_hcd2]: INFO : USB VBus power ON
[ 1.210000]
[ 1.210000] ------------IRQ SESSION_REQ-------------
[ 1.210000]
[ 1.210000] [sw_hcd2]: INFO : USB VBus power ON
[ 1.220000] [sw_udc]: udc_init: version 20080411
[ 1.230000] [sw_udc]: [sw_usb_udc]: binding gadget driver 'android_usb'
[ 1.230000] [sw_udc]: alloc request: ep(0xc059db70, ep0, 64), req(0xcf92f120)
[ 1.240000] WRN:L2369(drivers/usb/sun3i_usb/udc/sw_udc.c):ERR: usb device is not active
[ 1.250000] Gadget Android: controller 'sw_usb_udc' not recognized
[ 1.260000] WRN:L2369(drivers/usb/sun3i_usb/udc/sw_udc.c):ERR: usb device is not active
[ 1.270000] [sw_udc]: CONFIG_USB_GADGET_DUALSPEED
[ 1.270000] [sw_udc]: usbd_start_work
[ 1.280000] [sw_udc]: alloc request: ep(0xc059dc70, ep4-bulk, 512), req(0xcf969e60)
[ 1.290000] [sw_udc]: alloc request: ep(0xc059dc30, ep3-bulk, 512), req(0xcf969e20)
[ 1.300000] [sw_udc]: alloc request: ep(0xc059dc30, ep3-bulk, 512), req(0xcf969de0)
[ 1.310000] [sw_udc]: alloc request: ep(0xc059dc30, ep3-bulk, 512), req(0xcf969da0)
[ 1.310000] [sw_udc]: alloc request: ep(0xc059dc30, ep3-bulk, 512), req(0xcf969d60)
[ 1.330000] IR Initial OK
[ 1.330000] [sun3i-ts:inf] sun3its_init is invoked.
[ 1.340000] [sun3i-ts:inf] sun3i tp probe initial
[ 1.340000] [sun3i-ts:inf]
[ 1.350000] [sun3i-ts:inf] sun3i tp inital ok
[ 1.350000] sun3i RTC
[ 1.350000] f20_rtc_probe tmp_data = 16385
[ 1.370000] -----[cedar_dev] set ve clock -> 0x3040c019
[ 1.370000]
[ 1.370000] ------------IRQ CONNECT-------------
[ 1.370000]
[ 1.490000] [mmc]: awsmc controller unsing config sdc0 0, sdc1 0, sdc2 1, sdc3 0
[ 1.500000] [mmc]: awsmc.2: pdev->name: awsmc, pdev->id: 00000002
[ 1.510000] [mmc]: smc 2, source = video_pll0, src_clk = 297000000, mclk 99000000,
[ 1.510000] [mmc]: MMC Driver init host 2
[ 1.520000] [mmc]: awsmc.2: Initialisation Done.
[ 1.620000] m1 Audio successfully loaded..
[ 1.620000] registered taskstats version 1
[ 1.630000] incomplete xfer (32
[ 1.630000] incomplete xfer (32
[ 1.640000] incomplete xfer (32
[ 1.640000] incomplete xfer (32
[ 1.650000] incomplete xfer (32
[ 1.650000] incomplete xfer (32
[ 1.650000] incomplete xfer (32
[ 1.660000] incomplete xfer (32
[ 1.660000] incomplete xfer (32
[ 1.660000] incomplete xfer (32
[ 1.670000] incomplete xfer (32
[ 1.670000] incomplete xfer (32
[ 1.680000] incomplete xfer (32
[ 1.680000] incomplete xfer (32
[ 1.680000] incomplete xfer (32
[ 1.690000] incomplete xfer (32
[ 1.690000] incomplete xfer (32
[ 1.690000] incomplete xfer (32
[ 1.700000] [sw_hcd]: reset port.
[ 1.700000] incomplete xfer (32
[ 1.710000] incomplete xfer (32
[ 1.710000] incomplete xfer (32
[ 1.710000] incomplete xfer (32
[ 1.720000] incomplete xfer (32
[ 1.720000] incomplete xfer (32
[ 1.720000] incomplete xfer (32
[ 1.730000] incomplete xfer (32
[ 1.730000] incomplete xfer (32
[ 1.730000] incomplete xfer (32
[ 1.740000] incomplete xfer (32
[ 1.740000] incomplete xfer (32
[ 1.750000] incomplete xfer (32
[ 1.750000] incomplete xfer (32
[ 1.750000] incomplete xfer (32
[ 1.760000] [sw_hcd]: reset port stopped.
[ 1.760000] csr1: 0x2
[ 1.760000] csr2: 0x0
[ 1.770000] spurious?
[ 1.770000] incomplete xfer (32
[ 1.770000] incomplete xfer (32
[ 1.780000] incomplete xfer (32
[ 1.780000] incomplete xfer (32
[ 1.780000] incomplete xfer (32
[ 1.790000] incomplete xfer (32
[ 1.790000] incomplete xfer (32
[ 1.800000] incomplete xfer (32
[ 1.800000] incomplete xfer (32
[ 1.800000] incomplete xfer (32
[ 1.810000] incomplete xfer (32
[ 1.810000] incomplete xfer (32
[ 1.810000] incomplete xfer (32
[ 1.820000] incomplete xfer (32
[ 1.820000] incomplete xfer (32
[ 1.830000] incomplete xfer (32
[ 1.830000] incomplete xfer (32
[ 1.830000] incomplete xfer (32
[ 1.840000] [sw_hcd]: reset port.
[ 1.840000] incomplete xfer (32
[ 1.840000] incomplete xfer (32
[ 1.850000] f20_rtc_gettime
[ 1.850000] read time 2010-1-1 20:49:25
[ 1.860000] EXT2-fs (nandb): error: couldn't mount because of unsupported optional features (244)
[ 1.900000] [sw_hcd]: reset port stopped.
[ 1.900000] csr1: 0x2
[ 1.900000] csr2: 0x0
[ 1.960000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
[ 1.960000] [sw_hcd]: sw_hcd_h_disable, epnum = 0
[ 1.990000] EXT4-fs (nandb): warning: maximal mount count reached, running e2fsck is recommended
[ 2.010000] VFS: Mounted root (ext3 filesystem) on device 93:8.
[ 2.040000] init: /init.rc: 244: invalid option 'root'
[ 2.040000] init: /init.rc: 244: invalid option 'root'
[ 2.340000] invalid bits_per_pixel :0 in var_to_fb
[ 2.380000] invalid bits_per_pixel :0 in var_to_fb
[ 2.520000] EXT4-fs (nandd): warning: maximal mount count reached, running e2fsck is recommended
[ 2.550000] init: not file /data/wipe_me
[ 2.650000] EXT4-fs (nandc): warning: maximal mount count reached, running e2fsck is recommended
[ 2.940000] EXT4-fs (nandd): warning: maximal mount count reached, running e2fsck is recommended
[ 3.050000] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[ 3.060000] init: cannot find '/system/bin/memsicd', disabling 'memsicd'
[ 6.060000] [DISP]open
[ 7.760000] JBD2: Disabling barriers on nandb-8, not supported by device
[ 8.070000] JBD2: Disabling barriers on nandd-8, not supported by device
[ 8.070000] JBD2: Disabling barriers on nandc-8, not supported by device
[ 36.310000] [DISP]open
[ 36.450000] [DISP]open
[ 36.870000] [DISP]open
[ 38.150000] [sun3i-ts:dbg] suspend off
[ 38.720000] usb_wifi_host = 2
[ 38.730000] sw_usb_enable_hcd2 start, clk_is_open = 1
[ 38.730000] WRN:L1552(drivers/usb/sun3i_usb/hcd/hcd2/sw_hcd2.c):ERR: sw_usb_enable_hcd2, usb clock is open, can't open again
[ 38.750000]
[ 38.750000] rtw driver version=v3.1.2330.20110808
[ 38.750000] register rtw_netdev_ops to netdev_ops
[ 38.760000] CHIP TYPE: RTL8188C_8192C
[ 38.760000]
[ 38.760000] usb_endpoint_descriptor(0):
[ 38.770000] bLength=7
[ 38.770000] bDescriptorType=5
[ 38.780000] bEndpointAddress=81
[ 38.780000] wMaxPacketSize=200
[ 38.780000] bInterval=0
[ 38.790000] RT_usb_endpoint_is_bulk_in = 1
[ 38.790000]
[ 38.790000] usb_endpoint_descriptor(1):
[ 38.800000] bLength=7
[ 38.800000] bDescriptorType=5
[ 38.800000] bEndpointAddress=2
[ 38.800000] wMaxPacketSize=200
[ 38.810000] bInterval=0
[ 38.810000] RT_usb_endpoint_is_bulk_out = 2
[ 38.820000]
[ 38.820000] usb_endpoint_descriptor(2):
[ 38.820000] bLength=7
[ 38.820000] bDescriptorType=5
[ 38.830000] bEndpointAddress=3
[ 38.830000] wMaxPacketSize=200
[ 38.830000] bInterval=0
[ 38.840000] RT_usb_endpoint_is_bulk_out = 3
[ 38.840000]
[ 38.840000] usb_endpoint_descriptor(3):
[ 38.850000] bLength=7
[ 38.850000] bDescriptorType=5
[ 38.850000] bEndpointAddress=84
[ 38.860000] wMaxPacketSize=40
[ 38.860000] bInterval=1
[ 38.860000] RT_usb_endpoint_is_int_in = 4, Interval = 1
[ 38.870000] nr_endpoint=4, in_num=2, out_num=2
[ 38.870000]
[ 38.880000] USB_SPEED_HIGH
[ 39.000000] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_88C.
[ 39.000000] RF_Type is 3!!
[ 39.020000] EEPROM type is E-FUSE
[ 39.020000] ====> ReadAdapterInfo8192C
[ 39.030000] Boot from EFUSE, Autoload OK !
[ 39.530000] i2c-1, xfer timeout
[ 39.530000] Assertion failed! drivers/hwmon/mxc_mma7660.c,85,mma7660_read_xyz,result>=0
[ 39.720000] EEPROMVID = 0x0bda
[ 39.720000] EEPROMPID = 0x8176
[ 39.730000] EEPROMCustomerID : 0x00
[ 39.730000] EEPROMSubCustomerID: 0x00
[ 39.730000] RT_CustomerID: 0x00
[ 39.740000] _ReadMACAddress MAC Address from EFUSE = 00:13:ef:51:30:7b
[ 39.750000] EEPROMRegulatory = 0x0
[ 39.750000] _ReadBoardType(0)
[ 39.750000] BT Coexistance = disable
[ 39.760000] RT_ChannelPlan: 0x02
[ 39.760000] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
[ 39.770000] ### PS params=> power_mgnt(0),usbss_enable(0) ###
[ 39.780000] ### AntDivCfg(0)
[ 39.780000] readAdapterInfo_8192CU(): REPLACEMENT = 1
[ 39.780000] <==== ReadAdapterInfo8192C in 760 ms
[ 39.840000] rtw_macaddr_cfg MAC Address = 00:13:ef:51:30:7b
[ 39.840000] MAC Address from pnetdev->dev_addr= 00:13:ef:51:30:7b
[ 39.870000] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 39.980000] +871x_drv - drv_open, bup=0
[ 40.410000] ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
[ 40.410000] fw_ver=v75, fw_subver=0, sig=0x88c0
[ 40.610000] fw download ok!
[ 40.620000] Set RF Chip ID to RF_6052 and RF type to 1T1R.
[ 41.360000] IQK:Start!!!
[ 41.430000] Path A IQK Success!!
[ 41.440000] Path A IQK Success!!
[ 41.440000] IQK: final_candidate is 0
[ 41.450000] IQK: RegE94=100 RegE9C=e RegEA4=fe RegEAC=2 RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
[ 41.450000] Path A IQ Calibration Success !
[ 41.680000] pdmpriv->TxPowerTrackControl = 1
[ 41.700000] MAC Address from REG_MACID = 00:13:ef:51:30:7b
[ 41.700000] MAC Address = 00:13:ef:51:30:7b
[ 41.700000] -871x_drv - drv_open, bup=1
[ 42.360000] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[ 42.360000] set_mode = IW_MODE_INFRA
[ 42.380000] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[ 44.060000] survey done event(11)
[ 44.110000] set_mode = IW_MODE_INFRA
[ 44.110000] wpa_set_auth_algs, AUTH_ALG_SHARED_KEY and AUTH_ALG_OPEN_SYSTEM [value:0x3]
[ 44.140000] wpa_set_encryption, crypt.alg = WEP
[ 44.140000] (1)wep_key_idx=0
[ 44.140000] wep, set_tx=1
[ 44.140000] ==> rtw_set_key algorithm(5),keyid(0),key_mask(1)
[ 44.140000] =>rtw_wx_set_essid
[ 44.140000] ssid=subway, len=6
[ 44.140000] new candidate: subway(00:0f:66:90:9b:f1) rssi:-65
[ 44.140000] rtw_select_and_join_from_scanned_queue: candidate: subway(00:0f:66:90:9b:f1)
[ 44.140000] <=rtw_wx_set_essid
[ 44.140000] link to new AP
[ 44.320000] link to Broadcom AP
[ 44.340000] OnAuthClient
[ 44.340000] OnAssocRsp
[ 44.340000] report_join_res(5)
[ 44.350000] HW_VAR_BASIC_RATE: BrateCfg(0x15d)
[ 44.380000] HTOnAssocRsp
[ 44.390000] update raid entry, mask=0x40000fff, arg=0x80
[ 44.470000] rtl8192c_set_FwJoinBssReport_cmd mstatus(1)
[ 44.480000] SetFwRsvdPagePkt
[ 44.480000] Set RSVD page location to Fw.
[ 44.480000] =>mlmeext_joinbss_event_callback
[ 45.700000] rtl8192c_dm_RF_Saving(): RF_Normal
[ 47.750000] rtl8192c_dm_RF_Saving(): RF_Save
[ 51.720000] rtw_set_pid set pid[2]=207
...
[ 95.450000] [sun3i-ts:dbg] [suspend_store]change before TPCTRL =0x200681
[ 95.460000] [sun3i-ts:dbg] [suspend_store]change before TP_INT_CTRL=0xb0000723
[ 95.470000] [sun3i-ts:dbg] suspend on
[ 96.970000] [mmc]: awsmc.2: ShutDown.
[ 97.010000] mmc_remove_host cf975800
[ 97.060000] unregister_pm_notifier
[ 97.060000] mmc_stop_host
[ 97.070000] device_del
[ 97.070000] led_trigger_unregister_simple
[ 97.070000] [sw_hcd2]: close_usb_clock
[ 97.080000] [sw_hcd1]: close_usb_clock
[ 97.080000] WRN:L164(drivers/usb/sun3i_usb/hcd/hcd1/sw_hcd1.c):ERR: clock handle is null, sie_clk(0xc05876bc), phy_clk(0xc0587338), open(0)
[ 97.090000] [sw_hcd0]: [sw_hcd_host0]: close_usb_clock
[ 97.490000] Power down.

Hope after analysis i can find the bootloader (boot1) code now...