Building the 3.7.2 kernel

Hi,
I built the 3.7.2 kernel using Robert’s scripts in the stable-kernel tree on the beaglebone and installed it to the SD card. On rebooting the device, it outputs the following:

Hit any key to stop autoboot: 0
mmc0 is current device
SD/MMC found on device 0
reading uEnv.txt
816 bytes read in 3 ms (265.6 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc …
reading zImage
3418856 bytes read in 394 ms (8.3 MiB/s)
reading initrd.img
3110950 bytes read in 359 ms (8.3 MiB/s)
Booting from mmc …

Starting kernel …

And it just sits there. Should I have built and installed the kernel on the bone or should I have setup a cross compiled environment in a VM? Does anyone have any suggestions around trying to find out what might be messed up to prevent the kernel from loading?

Thanks,
Greg

Hi Greg,

You'll need to upgrade your uEnv.txt script, and load
"am335x-bone.dtb" please see:

http://eewiki.net/display/linuxonarm/BeagleBone#BeagleBone-uEnv.txtv3.6.xdevicetreebasedbootscript

for hints..

Regards,

Thanks Robert. The kernel now starts to boot, but stops here

[ 1.439134] sdhci: Secure Digital Host Controller Interface driver
[ 1.445680] sdhci: Copyright© Pierre Ossman
[ 1.450597] omap_hsmmc mmc.3: unable to select pin group
[ 1.456374] omap_hsmmc mmc.3: Failed to get debounce clk
[ 61.422080] INFO: rcu_sched detected stalls on CPUs/tasks: {} (detected by 0, t=7682 jiffies)
[ 61.431100] INFO: Stall ended before state dump start

Would you like me to file an enhancement request for the tools/install_kernel.sh to set the dtbs variable in the uEnv.txt file?

Thanks,
Greg

Thanks Robert. The kernel now starts to boot, but stops here

[ 1.439134] sdhci: Secure Digital Host Controller Interface driver
[ 1.445680] sdhci: Copyright(c) Pierre Ossman
[ 1.450597] omap_hsmmc mmc.3: unable to select pin group
[ 1.456374] omap_hsmmc mmc.3: Failed to get debounce clk
[ 61.422080] INFO: rcu_sched detected stalls on CPUs/tasks: {} (detected
by 0, t=7682 jiffies)
[ 61.431100] INFO: Stall ended before state dump start

Ah, sorry, missed your earlier "stable-kernel tree" statement..

The patch-set may be unified between the BeagleBoard and BeagleBone
but the config still isn't.. (it's very close..)

For, v3.7.x, BeagleBone support is still in the "linux-dev" repo under
the "am33x-v3.7"

I didn't want to make the script too complicated by having the user
select which device in a prompt.

To quickly rebuild with the Bone .config without re-cloning
everything, you could do:

wget https://github.com/RobertCNelson/linux-dev/blob/am33x-v3.7/patches/defconfig
cp defconfig KERNEL/.config
./tools/rebuild.sh

Would you like me to file an enhancement request for the
tools/install_kernel.sh to set the dtbs variable in the uEnv.txt file?

We are going to have to do something like that down the road to help
transition every one from v3.2.x.. As long as the "SOC.sh" file
exists in the boot partition it would be safe to change the uEnv.txt.
But this only gets created with my netinstall/demo image scripts..

Regards,

Thanks Robert. The kernel now starts to boot, but stops here

[ 1.439134] sdhci: Secure Digital Host Controller Interface driver
[ 1.445680] sdhci: Copyright(c) Pierre Ossman
[ 1.450597] omap_hsmmc mmc.3: unable to select pin group
[ 1.456374] omap_hsmmc mmc.3: Failed to get debounce clk
[ 61.422080] INFO: rcu_sched detected stalls on CPUs/tasks: {} (detected
by 0, t=7682 jiffies)
[ 61.431100] INFO: Stall ended before state dump start

Ah, sorry, missed your earlier "stable-kernel tree" statement..

The patch-set may be unified between the BeagleBoard and BeagleBone
but the config still isn't.. (it's very close..)

For, v3.7.x, BeagleBone support is still in the "linux-dev" repo under
the "am33x-v3.7"

GitHub - RobertCNelson/linux-dev

I didn't want to make the script too complicated by having the user
select which device in a prompt.

To quickly rebuild with the Bone .config without re-cloning
everything, you could do:

wget https://github.com/RobertCNelson/linux-dev/blob/am33x-v3.7/patches/defconfig

err: (kernel is not going to like http content)
wget https://raw.github.com/RobertCNelson/linux-dev/am33x-v3.7/patches/defconfig

cp defconfig KERNEL/.config
./tools/rebuild.sh

Regards,

I wasn’t able to boot from the zImage_bak file so I reimaged the sd card and am building the kernel from your kernel-dev tree.

Thanks,
Greg

I got the kernel built and installed.

ubuntu@arm:~$ uname -a
Linux arm 3.7.1-bone4 #1 SMP Tue Jan 15 23:47:40 CST 2013 armv7l armv7l armv7l GNU/Linux

Thanks for your help Robert.

Cheers,
Greg

I just went to run my python script that uses pybbio and it cannot find the pwm interfaces

IOError: [Errno 2] No such file or directory: ‘/sys/class/pwm/ehrpwm.1:1/request’

Do I just need to insmod the kernel module or was the pwm stuff missed in the defconfig?

Thanks,
Greg