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.

Booting kernel 3.2 on AM335x starter kit

Hi.


I recently purchased an am335x starter kit rev 1.2b.

I downloaded the 3.12 kernel source, compiled it, and was able to get it running with the provided filesystem.
Sources and the filesystem were a part of ti-sdk-am335x-evm-07.00.00.00. This worked out of the box, except for the fact that the wlan+bt module (w1217) failed to work. I realize that the problem lies in the fact that the pinmux config was not adjusted from the previous board revision.

By further reading, I decided I want to get 3.2 kernel running on my starter kit, as it provides the wlan support (i.e. the issue with the pin config is fixed), so adjusting the mux configuration would be avoided.


Note: I am using a 2GB sd card.

I got the AM335x-PSP_04.06.00.08 which includes precompiled bootloader and kernel images. Flashing the SD card went OK, but all I got was the MLO output (CCCCCC...). Seems like u-boot hasn't even gained control. Scratch that.


Moving on: I compiled the provided kernel source by issuing the following commands:

export PATH=/home/myusername/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin:$PATH 
make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm distclean make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-uImage

Notice I haven't set any makefile flags. I also haven't used the device tree file.


I compiled the bootloaders like this (same toolchain):

    make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm distclean
    make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- O=am335x_evm am335x_evm

This is the output I get:

<OUTPUT START>

No daughter card present                          
OMAP SD/MMC: 0                                          
reading u-boot.img                                      
reading u-boot.img                      
                                        
                                        
U-Boot 2011.09 (Aug 19 2014 - 16:44:38)
                                        
I2C:   ready                            
DRAM:  256 MiB                          
WARNING: Caches not enabled             
No daughter card present
NAND:  HW ECC Hamming Code selected
No NAND device found!!!
0 MiB                                                                           
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
*** Warning - readenv() failed, using default environment                       
                                                                                
Net:   cpsw                                                                     
Hit any key to stop autoboot:  0                                                
SD/MMC found on device 0                                                        
reading uEnv.txt                                                                
                                                                                
** Unable to read "uEnv.txt" from mmc 0:1 **                                    
reading uImage                                                                  
                                                                                
3075720 bytes read                                                              
## Booting kernel from Legacy Image at 80007fc0 ...                             
   Image Name:   Linux-3.2.0                                                    
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    3075656 Bytes = 2.9 MiB                                        
   Load Address: 80008000                                                       
   Entry Point:  80008000                                                       
   Verifying Checksum ... OK                                                    
   XIP Kernel Image ... OK                                                      
OK                                                                              
                                                                                
Starting kernel ...                                                             
                                                                                
Uncompressing Linux... done, booting the kernel.                                
[    0.000000] Linux version 3.2.0 (xxxx@xxx) (gcc version 4.7.
3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linar
o GCC 2013.03) ) #1 Tue Aug 19 19:19:37 CEST 2014                               
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d  
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio
n cache                                                                         
[    0.000000] Machine: am335xevm                                               
[    0.000000] Memory policy: ECC disabled, Data cache writeback                
[    0.000000] AM335X ES1.0 (sgx neon )                                         
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 65024                                                                       
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 r
w rootfstype=ext3 rootwait ip=none                                              
[    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: 256MB = 256MB total                                      
[    0.000000] Memory: 253512k/253512k available, 8632k 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]     modules : 0xbf000000 - 0xc0000000   (  16 MB)                
[    0.000000]       .text : 0xc0008000 - 0xc056a000   (5512 kB)                
[    0.000000]       .init : 0xc056a000 - 0xc05a6000   ( 240 kB)                
[    0.000000]       .data : 0xc05a6000 - 0xc0604a18   ( 379 kB)                
[    0.000000]        .bss : 0xc0604a3c - 0xc0631824   ( 180 kB)                
[    0.000000] NR_IRQS:396                                                      
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrup
ts                                                                              
[    0.000000] Total of 128 interrupts on 1 active controller                   
[    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz                  
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz                           
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 13
1071999ms                                                                       
[    0.000000] Console: colour dummy device 80x30                               
[    0.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)          
[    0.058959] pid_max: default: 32768 minimum: 301                             
[    0.059082] Security Framework initialized                                   
[    0.059173] Mount-cache hash table entries: 512                              
[    0.059539] CPU: Testing write buffer coherency: ok                          
[    0.079437] omap_hwmod: pruss: failed to hardreset                           
[    0.080566] print_constraints: dummy:                                        
[    0.080932] NET: Registered protocol family 16                               
[    0.083068] OMAP GPIO hardware version 0.1                                   
[    0.085662] omap_mux_init: Add partition: #1: core, flags: 0                 
[    0.087890]  omap_i2c.1: alias fck already exists                            
[    0.088745]  omap2_mcspi.1: alias fck already exists                         
[    0.089019]  omap2_mcspi.2: alias fck already exists                         
[    0.089294]  edma.0: alias fck already exists                                
[    0.089324]  edma.0: alias fck already exists                                
[    0.089324]  edma.0: alias fck already exists                                
[    0.114440] bio: create slab <bio-0> at 0                                    
[    0.116668] SCSI subsystem initialized                                       
[    0.118316] usbcore: registered new interface driver usbfs                   
[    0.118621] usbcore: registered new interface driver hub                     
[    0.118804] usbcore: registered new device driver usb                        
[    0.119140] registerd cppi-dma Intr @ IRQ 17                                 
[    0.119171] Cppi41 Init Done Qmgr-base(d087a000) dma-base(d0878000)          
[    0.119171] Cppi41 Init Done                                                 
[    0.119201] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3   
[    0.119537] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1   
[    0.139007] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz                   
[    0.140899] tps65910 1-002d: JTAGREVNUM 0x0                                  
[    0.143310] print_constraints: VRTC:                                         
[    0.144744] print_constraints: VIO: at 1500 mV                               
[    0.147064] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal      
[    0.149353] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal      
[    0.150360] print_constraints: VDD3: 5000 mV                                 
[    0.151763] print_constraints: VDIG1: at 1800 mV                             
[    0.153198] print_constraints: VDIG2: at 1800 mV                             
[    0.154632] print_constraints: VPLL: at 1800 mV                              
[    0.156066] print_constraints: VDAC: at 1800 mV                              
[    0.157470] print_constraints: VAUX1: at 1800 mV                             
[    0.158905] print_constraints: VAUX2: at 3300 mV                             
[    0.160339] print_constraints: VAUX33: at 3300 mV                            
[    0.161773] print_constraints: VMMC: at 3300 mV                              
[    0.162292] tps65910 1-002d: No interrupt support, no core IRQ               
[    0.163543] Advanced Linux Sound Architecture Driver Version 1.0.24.         
[    0.164672] Switching to clocksource gp timer                                
[    0.180389] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)             
[    0.180572] musb-hdrc musb-hdrc.0: dma type: dma-cppi41                      
[    0.180908] MUSB0 controller's USBSS revision = 4ea20800                     
[    0.181762] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using
DMA, IRQ 18                                                                     
[    0.181915] musb-hdrc musb-hdrc.1: dma type: dma-cppi41                      
[    0.182220] MUSB1 controller's USBSS revision = 4ea20800                     
[    0.182617] musb-hdrc musb-hdrc.1: MUSB HDRC host driver                     
[    0.182708] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus numbe
r 1                                                                             
[    0.182830] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002    
[    0.182861] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=
1                                                                               
[    0.182861] usb usb1: Product: MUSB HDRC host driver                         
[    0.182861] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd                     
[    0.182891] usb usb1: SerialNumber: musb-hdrc.1                              
[    0.183685] hub 1-0:1.0: USB hub found                                       
[    0.183715] hub 1-0:1.0: 1 port detected                                     
[    0.184265] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using
 DMA, IRQ 19                                                                    
[    0.184692] NET: Registered protocol family 2                                
[    0.184967] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)   
[    0.185272] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.185424] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)        
[    0.185516] TCP: Hash tables configured (established 8192 bind 8192)         
[    0.185516] TCP reno registered                                              
[    0.185546] UDP hash table entries: 256 (order: 0, 4096 bytes)               
[    0.185577] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)          
[    0.185760] NET: Registered protocol family 1                                
[    0.186035] RPC: Registered named UNIX socket transport module.              
[    0.186035] RPC: Registered udp transport module.                            
[    0.186065] RPC: Registered tcp transport module.                            
[    0.186065] RPC: Registered tcp NFSv4.1 backchannel transport module.        
[    0.186309] NetWinder Floating Point Emulator V0.97 (double precision)       
[    0.197631] VFS: Disk quotas dquot_6.5.2                                     
[    0.197692] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)       
[    0.198242] msgmni has been set to 495                                       
[    0.199035] io scheduler noop registered                                     
[    0.199035] io scheduler deadline registered                                 
[    0.199096] io scheduler cfq registered (default)                            
[    0.200408] Could not set LED4 to fully on                                   
[    0.202148] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    0.839691] console [ttyO0] enabled                                          
[    0.843963] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    0.851806] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    0.859588] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    0.867401] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    0.875152] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    0.892395] brd: module loaded                                               
[    0.900543] loop: module loaded                                              
[    0.904022] i2c-core: driver [tsl2550] using legacy suspend method           
[    0.910522] i2c-core: driver [tsl2550] using legacy resume method            
[    0.916931] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write  
[    0.975250] No daughter card found                                           
[    0.978851] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write  
[    0.994049] Board name: A335X_SK                                             
[    0.997436] Board version: 1.2B                                              
[    1.000701] The board is a AM335x Starter Kit.                               
[    1.005615]  omap_hsmmc.0: alias fck already exists                          
[    1.011138]  omap_hsmmc.1: alias fck already exists                          
[    1.017211]  da8xx_lcdc.0: alias fck already exists                          
[    1.022674] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-4.3-ATXI#-T-1 panel     
[    1.037780] Console: switching to colour frame buffer device 60x34           
[    1.050659]  davinci-mcasp.1: alias fck already exists                       
[    1.056427] Configure Bluetooth Enable pin...                                
[    1.061889] _regulator_get: 1-0018 supply Vdd not found, using dummy regulato
r                                                                               
[    1.069519] _regulator_get: 1-0018 supply Vdd_IO not found, using dummy regul
ator                                                                            
[    1.097991] lis3lv02d: 8 bits 3DLH sensor found                              
[    1.195709] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d
/input/input0                                                                   
[    1.206604] mtdoops: mtd device (mtddev=name/number) must be supplied        
[    1.213775] omap2-nand driver initializing                                   
[    1.218231] OneNAND driver initializing                                      
[    1.223541] CAN device driver interface                                      
[    1.227569] CAN bus driver for Bosch D_CAN controller 1.0                    
[    1.275329] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6           
[    1.281768] davinci_mdio davinci_mdio.0: detected phy mask fffffffc          
[    1.290069] davinci_mdio.0: probed                                           
[    1.293640] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[    1.301025] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[    1.308715] usbcore: registered new interface driver zd1201                  
[    1.314727] usbcore: registered new interface driver cdc_ether               
[    1.320983] usbcore: registered new interface driver cdc_eem                 
[    1.327056] usbcore: registered new interface driver dm9601                  
[    1.332916] cdc_ncm: 04-Aug-2011                                             
[    1.336456] usbcore: registered new interface driver cdc_ncm                 
[    1.342376] Initializing USB Mass Storage driver...                          
[    1.347686] usbcore: registered new interface driver usb-storage             
[    1.353973] USB Mass Storage support registered.                             
[    1.359252] mousedev: PS/2 mouse device common for all mice                  
[    1.366455] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input1    
[    1.374969] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0         
[    1.381835] i2c /dev entries driver                                          
[    1.385955] Linux video capture interface: v2.00                             
[    1.391082] usbcore: registered new interface driver uvcvideo                
[    1.397094] USB Video Class driver (1.1.1)                                   
[    1.403381] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec             
[    1.411926] cpuidle: using governor ladder                                   
[    1.416717] cpuidle: using governor menu                                     
[    1.427734] usbcore: registered new interface driver usbhid                  
[    1.433532] usbhid: USB HID core driver                                      
[    1.438385] usbcore: registered new interface driver snd-usb-audio           
[    1.446716] _regulator_get: 1-001b supply IOVDD not found, using dummy regula
tor                                                                             
[    1.454498] _regulator_get: 1-001b supply DVDD not found, using dummy regulat
or                                                                              
[    1.462219] _regulator_get: 1-001b supply AVDD not found, using dummy regulat
or                                                                              
[    1.469879] _regulator_get: 1-001b supply DRVDD not found, using dummy regula
tor                                                                             
[    1.480407] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok            
[    1.488250] ALSA device list:                                                
[    1.491424]   #0: AM335X EVM                                                 
[    1.494415] oprofile: hardware counters not available                        
[    1.499755] oprofile: using timer interrupt.                                 
[    1.504272] nf_conntrack version 0.5.0 (3961 buckets, 15844 max)             
[    1.511077] ip_tables: (C) 2000-2006 Netfilter Core Team                     
[    1.516784] TCP cubic registered                                             
[    1.520141] NET: Registered protocol family 17                               
[    1.524780] can: controller area network core (rev 20090105 abi 8)           
[    1.531341] NET: Registered protocol family 29                               
[    1.535980] can: raw protocol (rev 20090105)                                 
[    1.540435] can: broadcast manager protocol (rev 20090105 t)                 
[    1.546386] Registering the dns_resolver key type                            
[    1.551361] VFP support v0.3: implementor 41 architecture 3 part 30 variant c
 rev 3                                                                          
[    1.559387] ThumbEE CPU extension supported.                                 
[    1.563903] mux: Failed to setup hwmod io irq -22                            
[    1.569427] Power Management for AM33XX family                               
[    1.574279] Trying to load am335x-pm-firmware.bin (60 secs timeout)          
[    1.580963] Copied the M3 firmware to UMEM                                   
[    1.593597] clock: disabling unused clocks to save power                     
[    1.601318] Detected MACID=d4:94:a1:86:17:59                                 
[    1.607879] cpsw: Detected MACID = d4:94:a1:86:17:5a                         
[    1.617095] input: gpio-keys as /devices/platform/gpio-keys/input/input2     
[    1.624694] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UT
C (946684800)                                                                   
[    1.633911] Waiting for root device /dev/mmcblk0p2...                        
[    1.667114] mmc0: host does not support reading read-only switch. assuming wr
ite-enable.                                                                     
[    1.675659] mmc0: new SD card at address 95bf                                
[    1.680908] mmcblk0: mmc0:95bf SU02G 1.84 GiB                                
[    1.687957]  mmcblk0: p1 p2                                                  
[    1.767272] kjournald starting.  Commit interval 5 seconds                   
[    1.781677] EXT3-fs (mmcblk0p2): using internal journal                      
[    1.787139] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode   
[    1.794372] VFS: Mounted root (ext3 filesystem) on device 179:2.             
[    1.801086] Freeing init memory: 240K                                        
INIT: version 2.88 booting                                                      
Starting udev                                                                   
Missing devtmpfs, which is required for udev to run                             
Halting...                                                                      
INIT: Sending processes the TERM signaStopping telnet daemon. 

<OUTPUT END>

Seems like the kernel has trouble giving the control to the filesystem..

I would really appreaciate if someone knowledgeable could shed some light on this issue, as I am unsure what to do next.

Thank you.

-irfan