This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

移植SDK01.00遇到的问题,AM3358ZCZD70

Other Parts Discussed in Thread: TPS65910, AM3358

去年发过一个帖子咨询关于kernel3.2.0移植SGX支持的问题未果,后一直忙于工作就没有再继续下去.现在抽出空,想将SDK01.00的系统移植到AM3358ZCZD72的平台上,现在遇到启动后出现kernel panic的问题,希望大家帮忙看看是什么原因导致的.

平台描述: AM3358ZCZD72的核心板,已经在另外一个产品中使用并量产了.运行的uboot201109, kernel3.2.0, 256M nand flash和256M DDR2.

首先将uboot201407完成移植,并能够成功启动kernel3.2并正常工作. 然后移植kernel3.14.43,但是启动后出现异常,请帮忙看看:

Init the TPS65910 for the am335x-evm
reading u-boot.img
reading u-boot.img


U-Boot 2014.07 (Jun 07 2016 - 14:29:03)

I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Net: cpsw
Hit any key to stop autoboot: 0
SD/MMC found on device 0
reading uEnv.txt
291 bytes read in 5 ms (56.6 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading /boot/am335x-evm.dtb
34482 bytes read in 20 ms (1.6 MiB/s)
reading /boot/zImage
3480696 bytes read in 375 ms (8.9 MiB/s)
Kernel image @ 0x82000000 [ 0x000000 - 0x351c78 ]
## Flattened Device Tree blob at 80000000
Booting using the fdt blob at 0x80000000
Loading Device Tree to 8ef3b000, end 8ef466b1 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.14.43 (jerry@jerry-ThinkPad-X220) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20136
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x EVM
[ 0.000000] cma: CMA: reserved 24 MiB at 8d000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64512
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 noinitrd rootfstype=ubifs rootwait=1 mem=c
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 225912K/260096K available (4555K kernel code, 325K rwdata, 1804K rodata, 245K init, 207K bss, 34184K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc063dfac (6360 kB)
[ 0.000000] .init : 0xc063e000 - 0xc067b5cc ( 246 kB)
[ 0.000000] .data : 0xc067c000 - 0xc06cd550 ( 326 kB)
[ 0.000000] .bss : 0xc06cd550 - 0xc0701468 ( 208 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[ 0.000039] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000333] Console: colour dummy device 80x30
[ 0.000364] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.119363] pid_max: default: 32768 minimum: 301
[ 0.119467] Security Framework initialized
[ 0.119525] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.119537] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.127272] CPU: Testing write buffer coherency: ok
[ 0.127687] Setting up static identity map for 0x80478aa0 - 0x80478af8
[ 0.128721] devtmpfs: initialized
[ 0.130842] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.138758] omap_hwmod: tptc0 using broken dt data from edma
[ 0.138846] omap_hwmod: tptc1 using broken dt data from edma
[ 0.138924] omap_hwmod: tptc2 using broken dt data from edma
[ 0.143321] omap_hwmod: debugss: _wait_target_disable failed
[ 0.186250] pinctrl core: initialized pinctrl subsystem
[ 0.187374] regulator-dummy: no parameters
[ 0.189937] NET: Registered protocol family 16
[ 0.192170] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.194652] cpuidle: using governor ladder
[ 0.194669] cpuidle: using governor menu
[ 0.201665] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered
[ 0.203224] platform 49000000.edma: alias fck already exists
[ 0.203249] platform 49000000.edma: alias fck already exists
[ 0.203265] platform 49000000.edma: alias fck already exists
[ 0.204510] OMAP GPIO hardware version 0.1
[ 0.214967] omap-gpmc 50000000.gpmc: could not find pctldev for node /pinmux@44e10800/pinmux_nandflash_pins, deferring probe
[ 0.215004] platform 50000000.gpmc: Driver omap-gpmc requests probe deferral
[ 0.216678] No ATAGs?
[ 0.216701] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.216815] edma 49000000.edma: failed to get DT data
[ 0.216841] edma: probe of 49000000.edma failed with error -38
[ 0.237161] bio: create slab <bio-0> at 0
[ 0.238885] vbat: 5000 mV
[ 0.239881] i2c-core: driver [palmas] using legacy suspend method
[ 0.239894] i2c-core: driver [palmas] using legacy resume method
[ 0.240678] SCSI subsystem initialized
[ 0.241683] usbcore: registered new interface driver usbfs
[ 0.241884] usbcore: registered new interface driver hub
[ 0.242106] usbcore: registered new device driver usb
[ 0.242947] omap_i2c 4819c000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c2_pins, deferring probe
[ 0.242979] platform 4819c000.i2c: Driver omap_i2c requests probe deferral
[ 0.245063] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.245879] Advanced Linux Sound Architecture Driver Initialized.
[ 0.247089] Switched to clocksource timer1
[ 0.267543] NET: Registered protocol family 2
[ 0.268462] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.268503] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.268534] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.268628] TCP: reno registered
[ 0.268642] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.268664] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.268846] NET: Registered protocol family 1
[ 0.269268] RPC: Registered named UNIX socket transport module.
[ 0.269280] RPC: Registered udp transport module.
[ 0.269287] RPC: Registered tcp transport module.
[ 0.269294] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.269861] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[ 0.272744] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.428187] VFS: Disk quotas dquot_6.5.2
[ 0.428258] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.428665] NFS: Registering the id_resolver key type
[ 0.428751] Key type id_resolver registered
[ 0.428760] Key type id_legacy registered
[ 0.428831] msgmni has been set to 489
[ 0.430388] NET: Registered protocol family 38
[ 0.430431] io scheduler noop registered
[ 0.430440] io scheduler deadline registered
[ 0.430463] io scheduler cfq registered (default)
[ 0.432136] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.434903] omap_uart 44e09000.serial: no wakeirq for uart0
[ 0.435069] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[ 1.061357] console [ttyO0] enabled
[ 1.065754] omap_uart 48022000.serial: no wakeirq for uart0
[ 1.071867] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[ 1.082945] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.102046] brd: module loaded
[ 1.111530] loop: module loaded
[ 1.117042] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.127830] usbcore: registered new interface driver cdc_wdm
[ 1.134013] usbcore: registered new interface driver usb-storage
[ 1.140986] usbcore: registered new interface driver usbtouchscreen
[ 1.147758] i2c /dev entries driver
[ 1.152797] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.161025] omap_hsmmc 48060000.mmc: unable to obtain RX DMA engine channel 1
[ 1.170434] usbcore: registered new interface driver usbhid
[ 1.176289] usbhid: USB HID core driver
[ 1.180585] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
[ 1.190981] oprofile: using arm/armv7
[ 1.194937] nf_conntrack version 0.5.0 (3913 buckets, 15652 max)
[ 1.201997] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.207733] TCP: cubic registered
[ 1.211216] NET: Registered protocol family 17
[ 1.216024] Key type dns_resolver registered
[ 1.221884] PM: no-rtc available, rtc-only mode disabled.
[ 1.227621] ThumbEE CPU extension supported.
[ 1.233828] vbat: disabling
[ 1.236765] regulator-dummy: disabling
[ 1.241180] omap-gpmc 50000000.gpmc: GPMC revision 6.0
[ 1.246573] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 1.254097] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[ 1.260821] nand: Samsung NAND 256MiB 3,3V 8-bit
[ 1.265665] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[ 1.271613] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
[ 1.277378] 9 ofpart partitions found on MTD device omap2-nand.0
[ 1.283680] Creating 9 MTD partitions on "omap2-nand.0":
[ 1.289281] 0x000000000000-0x000000020000 : "NAND.SPL"
[ 1.296593] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
[ 1.304473] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
[ 1.312303] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
[ 1.320158] 0x000000080000-0x000000160000 : "NAND.u-boot-spl-os"
[ 1.328807] 0x000000160000-0x000000260000 : "NAND.u-boot"
[ 1.336793] 0x000000260000-0x000000280000 : "NAND.u-boot-env"
[ 1.344486] 0x000000280000-0x000000780000 : "NAND.kernel"
[ 1.355826] 0x000000780000-0x000010000000 : "NAND.file-system"
[ 1.568961] tps65910 2-002d: No interrupt support, no core IRQ
[ 1.581261] vrtc: 1800 mV
[ 1.584699] vrtc: supplied by vbat
[ 1.591898] vio: at 1800 mV
[ 1.595008] vio: supplied by vbat
[ 1.602515] vdd_mpu: 912 <--> 1375 mV at 1137 mV
[ 1.607557] vdd_mpu: supplied by vbat
[ 1.615386] vdd_core: 912 <--> 1150 mV at 1137 mV
[ 1.620513] vdd_core: supplied by vbat
[ 1.627702] vdd3: 5000 mV
[ 1.633759] vdig1: at 1800 mV
[ 1.637047] vdig1: supplied by vbat
[ 1.643986] vdig2: at 1800 mV
[ 1.647295] vdig2: supplied by vbat
[ 1.654194] vpll: at 1800 mV
[ 1.657398] vpll: supplied by vbat
[ 1.664227] vdac: at 1800 mV
[ 1.667439] vdac: supplied by vbat
[ 1.674261] vaux1: at 1800 mV
[ 1.677558] vaux1: supplied by vbat
[ 1.684460] vaux2: at 3300 mV
[ 1.687759] vaux2: supplied by vbat
[ 1.694677] vaux33: at 3300 mV
[ 1.698068] vaux33: supplied by vbat
[ 1.705071] vmmc: 1800 <--> 3300 mV at 3300 mV
[ 1.709923] vmmc: supplied by vbat
[ 1.715205] rtc-pcf8563 2-0051: chip found, driver version 0.4.3
[ 1.723185] rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
[ 1.731430] rtc-pcf8563 2-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 1.738581] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.744922] remoteproc0: wkup_m3 is available
[ 1.749632] remoteproc0: Note: remoteproc is still under development and considered experimental.
[ 1.759043] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 1.770284] remoteproc0: powering up wkup_m3
[ 1.774865] remoteproc0: Booting fw image am335x-pm-firmware.elf, size 154412
[ 1.783061] UBI: attaching mtd8 to ubi0
[ 1.798044] PM: CM3 Firmware Version = 0x190
[ 1.807682] remoteproc0: remote processor wkup_m3 is now up
[ 2.999644] UBI: scanning is finished
[ 3.014007] UBI: attached mtd8 (name "NAND.file-system", size 248 MiB) to ubi0
[ 3.021668] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 3.028799] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 3.035825] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 3.043044] UBI: good PEBs: 1978, bad PEBs: 10, corrupted PEBs: 0
[ 3.049462] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 3.056946] UBI: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 218177574
[ 3.066354] UBI: available PEBs: 9, total reserved PEBs: 1969, PEBs reserved for bad PEB handling: 10
[ 3.076091] UBI: background thread "ubi_bgt0d" started, PID 574
[ 3.147147] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 3.153555] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 3.160815] libphy: 4a101000.mdio: probed
[ 3.165031] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 3.175338] cpsw 4a100000.ethernet: Detected MACID = 00:17:ea:9c:fc:0e
[ 3.185389] rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
[ 3.193222] rtc-pcf8563 2-0051: setting system clock to 2016-06-08 13:47:16 UTC (1465393636)
[ 3.205395] ALSA device list:
[ 3.208586] No soundcards found.
[ 3.229703] UBIFS: background thread "ubifs_bgt0_0" started, PID 585
[ 3.253319] UBIFS: recovery needed
[ 3.347588] UBIFS: recovery completed
[ 3.351569] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 3.357898] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 3.367497] UBIFS: FS size: 239857664 bytes (228 MiB, 1889 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 3.377907] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 3.383212] UBIFS: media format: w4/r0 (latest is w4/r0), UUID DB4DCDA6-154B-43AB-BCB8-0B4DF47442B8, small LPT model
[ 3.396213] VFS: Mounted root (ubifs filesystem) on device 0:13.
[ 3.403439] devtmpfs: mounted
[ 3.406982] Freeing unused kernel memory: 244K (c063e000 - c067b000)
[ 3.509885] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 3.509885]

  • 以前碰到过文件系统不一致发生kernel panic,请问文件系统用的是配套SDK里的文件系统么?

  • 谢谢你的回复.

    已经解决了. 去年下载sdk01.00.00.00后,曾经在www.kernel.org上下载过一个patch并打上.

    我将sdk中的原始kernel释放出来编译,就可以启动加载ubi文件系统并进入到行式界面中去.

    不过现在还有2个问题:

    1, lan8710能够搜索到,但是进入kenrel后,加载不了nfs文件系统,用ubi启动后也ping不通和am3358链接的计算机.(不过uboot201407中可以通过tftp和nfs从计算机下载zImage和am335x-evm.dtb)

    2, USB的bvbus能够测试到有5V电压出来,但是立即就有变为低了.

    什么都不该,直接将kernel换成3.2.0的uImage, 以太网和USB 都是正常的.

    请问TI有没有详细的dts的编写说明文件? 一直以来用的都是kernel3.2.0,没有接触过dts.

    谢谢!