|
本帖最后由 duwu891229 于 2015-8-30 16:10 编辑
采用的交叉工具链是:gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux(buildroot下载的)
编译脚本片段:
- toolchain_dir=/home/duwu/arm-linux/x4418/buildroot-2015.05/output/host/usr/bin
- PATH=$PATH:$toolchain_dir
- cross_compile=arm-linux-gnueabihf-
- kernel_config=x4418_defconfig
- make_kernel(){
- cd ${kernel_dir} || return 1
- make clean
- make ${kernel_config}
- make uImage ARCH=arm CROSS_COMPILE=${cross_compile}
- echo "finish make kernel"
- return 0
- }
复制代码
打包脚本片段:
- x4418_dir=/home/duwu/arm-linux/x4418
- prod_dir=$x4418_dir/camera_prod
- #
- tool_dir=$prod_dir/tool
- PATH=$tool_dir:$PATH
- output_dir=$prod_dir/output
- kernel_dir=$x4418_dir/kernel
- #
- cp $kernel_dir/arch/arm/boot/uImage $output_dir/boot || return 1
- mkuserimg.sh -s ${output_dir}/boot ${output_dir}/boot.img ext4 boot 67108864
复制代码
使用fastboot烧写内核,启动信息:
[ 0.179000] PTP clock support registered
[ 0.180000] ###################### x4418 board #######################
[ 0.182000] web:www.9tripod.com
[ 0.183000] bbs:www.bbs.9tripod.com
[ 0.184000] tel:0755-33133436 0755-33121205
[ 0.185000] Baoan District City,Shenzhen Industrial Road Internet inductry base 3003B District B
[ 0.186000] Shen Zhen 9tripod innovation and development co.,ltd
[ 0.187000] ##########################################################
[ 0.193000] axp_mfd 3-0034: AXP (CHIP ID: 0x06) detected
[ 0.198000] [x4418] axp22_ldo1: 3000 mV
[ 0.201000] [x4418] axp22_aldo1: 700 <--> 3300 mV at 3300 mV
[ 0.204000] [x4418] axp22_aldo2: 700 <--> 3300 mV at 1800 mV
[ 0.207000] [x4418] axp22_aldo3: 700 <--> 3300 mV at 1000 mV
[ 0.210000] [x4418] axp22_dldo1: 700 <--> 3300 mV at 3300 mV
[ 0.213000] [x4418] axp22_dldo2: 700 <--> 3300 mV at 1800 mV
[ 0.217000] [x4418] axp22_dldo3: 700 <--> 3300 mV at 700 mV
[ 0.220000] [x4418] axp22_dldo4: 700 <--> 3300 mV at 700 mV
[ 0.223000] [x4418] axp22_eldo1: 700 <--> 3300 mV at 1800 mV
[ 0.226000] [x4418] axp22_eldo2: 700 <--> 3300 mV at 3300 mV
[ 0.229000] [x4418] axp22_eldo3: 700 <--> 3300 mV at 700 mV
[ 0.232000] [x4418] axp22_dc5ldo: 700 <--> 1400 mV at 1200 mV
[ 0.235000] [x4418] axp22_dcdc1: 1600 <--> 3400 mV at 3300 mV
[ 0.238000] [x4418] axp22_dcdc2: 600 <--> 1540 mV at 1100 mV
[ 0.241000] [x4418] axp22_dcdc3: 600 <--> 1860 mV at 1100 mV
[ 0.244000] [x4418] axp22_dcdc4: 600 <--> 1540 mV at 1500 mV
[ 0.247000] [x4418] axp22_dcdc5: 1000 <--> 2550 mV at 1500 mV
[ 0.250000] [x4418] axp22_ldoio0: 700 <--> 3300 mV at 3800 mV
[ 0.253000] [x4418] axp22_ldoio1: 700 <--> 3300 mV at 3800 mV
[ 0.255000] axp22-supplyer axp22-supplyer.19: AXP228_BATTERY_VERSION2015.02.15:modify)
[ 0.256000] axp charger not limit now
[ 0.271000] now_rest_vol = 100
[ 0.273000] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.274000] Bluetooth: Core ver 2.16
[ 0.275000] NET: Registered protocol family 31
[ 0.276000] Bluetooth: HCI device and connection manager initialized
[ 0.277000] Bluetooth: HCI socket layer initialized
[ 0.278000] Bluetooth: L2CAP socket layer initialized
[ 0.279000] Bluetooth: SCO socket layer initialized
[ 0.281000] cfg80211: Calling CRDA to update world regulatory domain
[ 0.283000] Switching to clocksource source timer
[ 0.305000] Unable to handle kernel NULL pointer dereference at virtual address 00000001
[ 0.313000] pgd = 80004000
[ 0.316000] [00000001] *pgd=00000000
[ 0.320000] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 0.320000] Modules linked in:
[ 0.320000] CPU: 0 Not tainted (3.4.39 #3)
[ 0.320000] PC is at kmem_cache_alloc_trace+0x6c/0x1f4
[ 0.320000] LR is at kmem_cache_alloc_trace+0xfc/0x1f4
[ 0.320000] pc : [<8011a068>] lr : [<8011a0f8>] psr: 20000013
[ 0.320000] sp : b3843ec8 ip : 000020c4 fp : 00000001
[ 0.320000] r10: b3842008 r9 : 80900cbe r8 : b3802200
[ 0.320000] r7 : 00000080 r6 : 802b545c r5 : 000000d0 r4 : 00000001
[ 0.320000] r3 : 808dd0c8 r2 : 00000000 r1 : b3842000 r0 : 00b65000
[ 0.320000] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 0.320000] Control: 10c5387d Table: 4000404a DAC: 00000015 |
|