: git clone git://github.com/beagleboard/kernel.gitcd kernelgit checkout 3.8./patch.shcp configs/beaglebone kernel/arch/arm/configs/beaglebone_defconfigwget
http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD
-O kernel/firmware/am335x-pm-firmware.bincd kernelmake ARCH=arm CROSS_COMPILE=arm-linux-gnu- beaglebone_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- uImage dtbsAfter these step i got zImage and am335x-bone.dtb
Then i have created partition on SD card take a look of SD card partition
http://elinux.org/Building_BBB_Kernel#Downloading_and_building_the_Linux_Kernel
--------------------------------------------------------------------------------------------------------------------------------------------------
# sudo fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb: 1980 MB, 1980760064 bytes
61 heads, 62 sectors/track, 1022 cylinders, total 3868672 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 198655 98304 e W95 FAT16 (LBA)
/dev/sdb2 198656 3481599 1641472 83 Linux
-------------------------------------------------------------------------------------------------------------------------------------------------
In first partition i copy MLO + u-boot.img + zImage and am335x-bone.dtb and
in Second root file system
then i plugged SD card in BBB and holed S2 Button and power on so it booted from SD Card and log is given below
-----------------------------------------------------------------------------------------------------------------------------------
U-Boot SPL 2014.10 (Oct 16 2014 - 15:10:29)
reading args
spl_load_image_fat_os: error reading image args, err - -1
reading u-boot.img
reading u-boot.img
U-Boot 2014.10 (Oct 16 2014 - 15:10:29)
Watchdog enabled
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Error - No Valid Environment Area found
*** Warning - bad CRC, using default environment
Net: <ethaddr> not set. Validating first E-fuse MAC
cpsw, usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
** File not found /boot/zImage **
Card did not respond to voltage select!
SD/MMC found on device 1
Card did not respond to voltage select!
** Bad device mmc 1 **
Card did not respond to voltage select!
** Bad device mmc 1 **
Card did not respond to voltage select!
** Bad device mmc 1 **
Booting from nand ...
no devices available
no devices available
Bad Linux ARM zImage magic!
------------------------------------------------------------------------------------------------------------------------------------
and then i followed these step to load zImage
U-Boot# load mmc 0:1 0x82000000 zImage
reading zImage
4133704 bytes read in 230 ms (17.1 MiB/s)
U-Boot# load mmc 0:1 0x88000000 am335x-bone.dtb
reading am335x-bone.dtb
7967 bytes read in 7 ms (1.1 MiB/s)
U-Boot# setenv bootargs console=ttyO0,115200n8 capemgr.enable_partno=BB-UART1 root=/dev/mmcblk0p2 rw rootfstype=ext4
U-Boot# bootz 0x82000000 - 0x88000000
----------------------------------------------------------------------------------------------------------------------------------
After these step kernel started loading ,and here is the kernel log
Kernel image @ 0x82000000 [ 0x000000 - 0x3f1348 ]
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fffb000, end 8fffff1e ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.13-dirty (ari_csuser2@ubuntu-3f-21) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #5 SMP4
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] PERCPU: Embedded 8 pages/cpu @c0aa2000 s9408 r8192 d15168 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129792
[ 0.000000] Kernel command line: console=ttyO0,115200n8 capemgr.enable_partno=BB-UART1 root=/dev/mmcblk0p2 rw rootfstype=ext4
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] allocated 1048576 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 511MB = 511MB total
[ 0.000000] Memory: 510912k/510912k available, 13376k 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 : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0598958 (5699 kB)
[ 0.000000] .init : 0xc0599000 - 0xc05ce4c0 ( 214 kB)
[ 0.000000] .data : 0xc05d0000 - 0xc06401a0 ( 449 kB)
[ 0.000000] .bss : 0xc06401a0 - 0xc0698cbc ( 355 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 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: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000231] Calibrating delay loop... 993.47 BogoMIPS (lpj=969728)
[ 0.029196] pid_max: default: 32768 minimum: 301
[ 0.029336] Security Framework initialized
[ 0.029393] Mount-cache hash table entries: 512
[ 0.031858] Initializing cgroup subsys cpuacct
[ 0.031880] Initializing cgroup subsys memory
[ 0.031928] Initializing cgroup subsys blkio
[ 0.032008] CPU: Testing write buffer coherency: ok
[ 0.032341] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.032397] Setting up static identity map for 0x80366ae8 - 0x80366b34
[ 0.033265] Brought up 1 CPUs
[ 0.033280] SMP: Total of 1 processors activated (993.47 BogoMIPS).
[ 0.034003] devtmpfs: initialized
[ 0.042581] omap_hwmod: wd_timer2: _wait_target_disable failed
[ 0.094406] pinctrl core: initialized pinctrl subsystem
[ 0.094803] regulator-dummy: no parameters
[ 0.095121] NET: Registered protocol family 16
[ 0.095691] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.095877] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.101899] OMAP GPIO hardware version 0.1
[ 0.106074] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.106257] omap_init_sham: platform not supported
[ 0.106266] omap_init_aes: platform not supported
[ 0.114408] bio: create slab <bio-0> at 0
[ 0.116080] SCSI subsystem initialized
[ 0.116327] usbcore: registered new interface driver usbfs
[ 0.116395] usbcore: registered new interface driver hub
[ 0.116570] usbcore: registered new device driver usb
[ 0.117236] omap_i2c 44e0b000.i2c: did not get pins for i2c error: -19
[ 0.117581] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 0.119106] DCDC1: at 1500 mV
[ 0.119957] vdd_mpu: 925 <--> 1325 mV at 1325 mV
[ 0.120796] vdd_core: 925 <--> 1150 mV at 1125 mV
[ 0.121642] LDO1: at 1800 mV
[ 0.122457] LDO2: at 3300 mV
[ 0.123319] LDO3: at 1800 mV
[ 0.124139] LDO4: at 3300 mV
[ 0.124619] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 0.124744] media: Linux media interface: v0.10
[ 0.124801] Linux video capture interface: v2.00
[ 0.124931] pps_core: LinuxPPS API ver. 1 registered
[ 0.124941] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[ 0.125273] Advanced Linux Sound Architecture Driver Initialized.
[ 0.126052] Switching to clocksource gp_timer
[ 0.136161] NET: Registered protocol family 2
[ 0.136778] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.136859] TCP bind hash table entries: 4096 (order: 4, 81920 bytes)
[ 0.136942] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.137006] TCP: reno registered
[ 0.137023] UDP hash table entries: 256 (order: 1, 12288 bytes)
[ 0.137048] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes)
[ 0.137285] NET: Registered protocol family 1
[ 0.137669] RPC: Registered named UNIX socket transport module.
[ 0.137682] RPC: Registered udp transport module.
[ 0.137690] RPC: Registered tcp transport module.
[ 0.137698] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.138396] CPU PMU: probing PMU on CPU 0
[ 0.138415] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
[ 0.138702] omap2_mbox_probe: platform not supported
[ 0.140993] VFS: Disk quotas dquot_6.5.2
[ 0.141117] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.141887] NFS: Registering the id_resolver key type
[ 0.141956] Key type id_resolver registered
[ 0.141966] Key type id_legacy registered
[ 0.142005] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.142271] msgmni has been set to 997
[ 0.143963] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.143980] io scheduler noop registered
[ 0.143989] io scheduler deadline registered
[ 0.144012] io scheduler cfq registered (default)
[ 0.144552] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.145500] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.146981] omap_uart 44e09000.serial: did not get pins for uart0 error: -19
[ 0.147237] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88) is a OMAP UART0
[ 0.790275] console [ttyO0] enabled
[ 0.794487] [drm] Initialized drm 1.1.0 20060810
[ 0.806809] brd: module loaded
[ 0.814020] loop: module loaded
[ 0.818224] OneNAND driver initializing
[ 0.823033] usbcore: registered new interface driver asix
[ 0.828773] usbcore: registered new interface driver cdc_ether
[ 0.834949] usbcore: registered new interface driver smsc95xx
[ 0.841006] usbcore: registered new interface driver net1080
[ 0.846969] usbcore: registered new interface driver cdc_subset
[ 0.853209] usbcore: registered new interface driver zaurus
[ 0.859138] usbcore: registered new interface driver cdc_ncm
[ 0.865509] usbcore: registered new interface driver cdc_acm
[ 0.871452] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 0.879818] Initializing USB Mass Storage driver...
[ 0.884998] usbcore: registered new interface driver usb-storage
[ 0.891274] USB Mass Storage support registered.
[ 0.896198] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.903633] mousedev: PS/2 mouse device common for all mice
[ 0.910248] i2c /dev entries driver
[ 0.914624] pps_ldisc: PPS line discipline registered
[ 0.919986] Driver for 1-wire Dallas network protocol.
[ 0.926292] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 0.933664] cpuidle: using governor ladder
[ 0.937964] cpuidle: using governor menu
[ 0.942378] leds-gpio leds.3: pins are not configured from the driver
[ 0.949798] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.956106] omap_sham_mod_init: loading omap-sham driver
[ 0.961725] omap_aes_mod_init: loading omap-aes driver
[ 0.969562] usbcore: registered new interface driver usbhid
[ 0.975417] usbhid: USB HID core driver
[ 0.980569] TCP: cubic registered
[ 0.984086] Initializing XFRM netlink socket
[ 0.988581] NET: Registered protocol family 17
[ 0.993304] NET: Registered protocol family 15
[ 0.998043] Key type dns_resolver registered
[ 1.002712] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.010960] ThumbEE CPU extension supported.
[ 1.015458] Registering SWP/SWPB emulation handler
[ 1.021068] registered taskstats version 1
[ 1.073408] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.079795] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 1.086985] libphy: 4a101000.mdio: probed
[ 1.091224] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 1.100911] Random MACID = be:54:16:a0:e7:b5
[ 1.106032] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 1.113537] ------------[ cut here ]------------
[ 1.118412] WARNING: at arch/arm/mach-omap2/dpll3xxx.c:507 omap3_noncore_dpll_set_rate+0x2f1/0x32a()
[ 1.127965] Modules linked in:
[ 1.131204] [<c00102d7>] (unwind_backtrace+0x1/0x8a) from [<c00291eb>] (warn_slowpath_common+0x33/0x48)
[ 1.141036] [<c00291eb>] (warn_slowpath_common+0x33/0x48) from [<c002920f>] (warn_slowpath_null+0xf/0x10)
[ 1.151048] [<c002920f>] (warn_slowpath_null+0xf/0x10) from [<c0023ceb>] (omap3_noncore_dpll_set_rate+0x2f1/0x32a)
[ 1.161872] [<c0023ceb>] (omap3_noncore_dpll_set_rate+0x2f1/0x32a) from [<c02bfcd1>] (clk_change_rate+0x1b/0x52)
[ 1.172505] [<c02bfcd1>] (clk_change_rate+0x1b/0x52) from [<c02bfd55>] (clk_set_rate+0x4d/0x74)
[ 1.181609] [<c02bfd55>] (clk_set_rate+0x4d/0x74) from [<c0295391>] (cpu0_set_target+0xf9/0x198)
[ 1.190794] [<c0295391>] (cpu0_set_target+0xf9/0x198) from [<c0292657>] (__cpufreq_driver_target+0x4b/0x70)
[ 1.200979] [<c0292657>] (__cpufreq_driver_target+0x4b/0x70) from [<c0293ecb>] (cpufreq_governor_performance+0x13/0x16)
[ 1.212254] [<c0293ecb>] (cpufreq_governor_performance+0x13/0x16) from [<c0292dbf>] (__cpufreq_governor+0x33/0x64)
[ 1.223065] [<c0292dbf>] (__cpufreq_governor+0x33/0x64) from [<c0292e8d>] (__cpufreq_set_policy+0x9d/0xc8)
[ 1.233159] [<c0292e8d>] (__cpufreq_set_policy+0x9d/0xc8) from [<c0293047>] (cpufreq_add_dev_interface+0x18f/0x1cc)
[ 1.244062] [<c0293047>] (cpufreq_add_dev_interface+0x18f/0x1cc) from [<c029331d>] (cpufreq_add_dev+0x299/0x2e4)
[ 1.254710] [<c029331d>] (cpufreq_add_dev+0x299/0x2e4) from [<c01e1167>] (subsys_interface_register+0x4b/0x74)
[ 1.265183] [<c01e1167>] (subsys_interface_register+0x4b/0x74) from [<c0292a97>] (cpufreq_register_driver+0x57/0xf8)
[ 1.276186] [<c0292a97>] (cpufreq_register_driver+0x57/0xf8) from [<c0295543>] (cpu0_cpufreq_driver_init+0x113/0x160)
[ 1.287282] [<c0295543>] (cpu0_cpufreq_driver_init+0x113/0x160) from [<c000866f>] (do_one_initcall+0x63/0xe8)
[ 1.297654] [<c000866f>] (do_one_initcall+0x63/0xe8) from [<c059966b>] (kernel_init_freeable+0xbb/0x14c)
[ 1.307581] [<c059966b>] (kernel_init_freeable+0xbb/0x14c) from [<c035ed33>] (kernel_init+0x7/0x90)
[ 1.317059] [<c035ed33>] (kernel_init+0x7/0x90) from [<c000c47d>] (ret_from_fork+0x11/0x34)
[ 1.325796] ---[ end trace 8f53c8efd0c936d3 ]---
[ 1.337433] ALSA device list:
[ 1.340591] No soundcards found.
[ 1.345198] VFS: Cannot open root device "mmcblk0p2" or unknown-block(0,0): error -6
[ 1.353349] Please append a correct "root=" boot option; here are the available partitions:
[ 1.362126] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.370803] [<c00102d7>] (unwind_backtrace+0x1/0x8a) from [<c03624cd>] (panic+0x51/0x14c)
[ 1.379366] [<c03624cd>] (panic+0x51/0x14c) from [<c059993f>] (mount_block_root+0x137/0x174)
[ 1.388195] [<c059993f>] (mount_block_root+0x137/0x174) from [<c0599aaf>] (mount_root+0x8f/0xa8)
[ 1.397385] [<c0599aaf>] (mount_root+0x8f/0xa8) from [<c0599b8d>] (prepare_namespace+0xc5/0x118)
[ 1.406584] [<c0599b8d>] (prepare_namespace+0xc5/0x118) from [<c035ed33>] (kernel_init+0x7/0x90)
[ 1.415784] [<c035ed33>] (kernel_init+0x7/0x90) from [<c000c47d>] (ret_from_fork+0x11/0x34)
Please help me
Thanks