ARM – Pi2 to 4.0 – Eventually..

Finally managed to get the Raspberry Pi2 (armv7) to boot Kernel 4.0, by re-creating the kernel config from scratch, with # make bcm2709_defconfig

Fedora release 21 (Twenty One)
Kernel 4.0.0-v7 on an armv7l (ttyAMA0)
............
]# uname -a
Linux rgpi2 4.0.0-v7 #1 SMP PREEMPT Wed Apr 15 17:12:00 PDT 2015 armv7l armv7l armv7l GNU/Linux

The ‘classic’ Pi had been able to utilise the imported config from 3.19.3, but – for some reason – the Pi 2 had not.

Now I will try to remove the kernel ‘debug’ settings, and see if it still boots!

Robert Gadsdon.  April 15, 2015.

 

ARM – Pi to 4.0.. Patience is a Virtue..?

Tried updating the Raspberry Pi-s (Classic model B and Pi2) to Kernel 4.0, from https://github.com/raspberrypi/linux/tree/rpi-4.0.y, and my first attempt was – it seems – too soon, as the Classic Pi (armv6) failed to boot at all, and the Pi2 (armv7) only booted as far as:

.............
bcm2708_dma: DMA manager at f3007000
bcm2708_gpio: bcm2708_gpio_probe 80625490
vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
futex hash table entries: 1024 (order: 4, 65536 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.778:1): initialized
VFS: Disk quotas dquot_6.5.2
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
BCM2708FB: allocated DMA memory 76c00000
BCM2708FB: allocated DMA channel 0 @ f3007000
<< HANG >>

Later, I noticed some more commits to the tree, and re-downloaded the ‘later’ version…

# git clone -b rpi-4.0.y --single-branch https://github.com/raspberrypi/linux

This time, the Classic Pi booted successfully:

Pidora release 2014 (Raspberry Pi Fedora Remix)
Kernel 4.0.0 on an armv6l (ttyAMA0)
........
]# uname -a
Linux rgpi 4.0.0 #1 PREEMPT Mon Apr 13 21:34:08 PDT 2015 armv6l armv6l armv6l GNU/Linux

– but the Pi2 still hung during boot, at the same point as before..

So…  I will have to wait for more changes to the tree!

Robert Gadsdon.   April 13, 2015

 

ARM – Update to 4.0 for DreamPlug, CuBox, and Odroid..

Updated the DreamPlug and CuBox-i4Pro to kernel 4.0 from kernel.org:

Fedora release 18 (Spherical Cow)
Kernel 4.0.0 on an armv5tel (ttyS0)
.........
# uname -a
Linux rgdreamplug 4.0.0 #1 Sun Apr 12 22:53:28 PDT 2015 armv5tel armv5tel armv5tel GNU/Linux
Fedora release 22 (Twenty Two)
Kernel 4.0.0 on an armv7l (ttymxc0)
.........
]# uname -a
Linux rgcubox 4.0.0 #1 SMP Mon Apr 13 02:16:24 EDT 2015 armv7l armv7l armv7l GNU/Linux

– and the Odroid U3 from patched source at https://github.com/tobiasjakobi/linux-odroid/tree/odroid-4.0.y

Fedora release 21 (Twenty One)
Kernel 4.0.0 on an armv7l (ttySAC1)
...........
# uname -a
Linux rgodroid 4.0.0 #1 SMP Mon Apr 13 11:27:18 PDT 2015 armv7l armv7l armv7l GNU/Linux

Just noticed that the Raspberry Pi kernel source has now been updated with 4.0, so that will be next..

Robert Gadsdon.   April 13, 2015.

Kernel 4.0 ‘Final’ – OK with latest NVIDIA, and Patched VMware..

Updated to Kernel 4.0 (from kernel.org), and the latest NVIDIA driver (346.59) and ‘patched’ VMware 11.1 both compile and install/run OK..

$ uname -a
Linux rglinux-i7 4.0.0 #1 SMP Sun Apr 12 17:26:04 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

Brief details of changes since -rc7 are here:  http://lkml.iu.edu/hypermail/linux/kernel/1504.1/03200.html

Robert Gadsdon.    April 12, 2015.

Kernel 4.0-rc7 – Final Next?

Updated the test system to Kernel 4.0-rc7, and – as with -r6 – the patched* VMware 11.1 and NVIDIA 349.12 compiled and loaded OK..

$ uname -a
Linux rg6830l 4.0.0-rc7 #1 SMP Mon Apr 6 18:25:10 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

Brief details of changes since -rc6 are here: http://lkml.iu.edu/hypermail/linux/kernel/1504.0/03029.html

If all goes well, 4.0 ‘final’ should be out within the next 10 days or so..

* There is a complete VMware 11.1 patch for kernel 3.19 and later – with instructions – at the excellent Arch Linux wiki: https://wiki.archlinux.org/index.php/VMware#3.19_kernels

Robert Gadsdon.   April 6, 2015.

 

ARM – Updates to Kernel 4.0-rc6..

Updated the DreamPlug and CuBox-i4Pro to Kernel 4.0-rc6 from kernel.org https://www.kernel.org/

Fedora release 18 (Spherical Cow)
Kernel 4.0.0-rc6 on an armv5tel (ttyS0)
.........
# uname -a
Linux rgdreamplug 4.0.0-rc6 #1 Sun Mar 29 22:11:02 PDT 2015 armv5tel armv5tel armv5tel GNU/Linux
Fedora release 22 (Twenty Two)
Kernel 4.0.0-rc6 on an armv7l (ttymxc0)
.......
# uname -a
Linux rgcubox 4.0.0-rc6 #1 SMP Mon Mar 30 01:35:31 EDT 2015 armv7l armv7l armv7l GNU/Linux

And.. Updated the Odroid U3 from the latest patched kernel source here: https://github.com/tobiasjakobi/linux-odroid/tree/odroid-4.0.y

Fedora release 21 (Twenty One)
Kernel 4.0.0-rc6 on an armv7l (ttySAC1)
................
# uname -a
Linux rgodroid 4.0.0-rc6 #1 SMP Wed Apr 1 09:52:45 PDT 2015 armv7l armv7l armv7l GNU/Linux

No problems, this time, and expect – if all goes well – one more -rc before ‘final’..

Robert Gadsdon.   April 2, 2015.

 

Kernel 4.0-rc6 – Maybe only -rc7 Needed?

Updated the test system to Kernel 4.0-rc6, and VMware 11.1.0 (patched) and the latest NVIDIA driver – 349.12 – compile and load OK..

$ uname -a
Linux rg6830l 4.0.0-rc6 #1 SMP Sun Mar 29 22:23:37 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux

Brief details of changes since -rc5 are here: http://lkml.iu.edu/hypermail/linux/kernel/1503.3/04437.html

The VMware patch info is in a previous article, at http://rglinuxtech.com/?p=1281.

Apparently – if all goes according to plan with -rc6 – 4.0 Final may be out after -rc7…    But of course, this sort of prediction is never absolutely certain!

Robert Gadsdon.  March 30, 2015.

ARM – DreamPlug Kernel Compile – Correction..

Thanks are due to Marcus Roeder, who pointed out an error in my DreamPlug kernel compile workflow (http://rglinuxtech.com/?p=1354)..

The make LOADADDR.. command was incorrect, and would result in less system memory being available..

The correct command is:

make LOADADDR=000008000 uImage

– and this will result in all the memory being available:

# free
      total  used   free  shared buffers cached
Mem: 512648 143796 368852 0      18968    74800
.............

I have amended the original article..  Apologies for the confusion..

Robert Gadsdon.  March 29, 2015.

ARM – Raspberry Pi and Pi2 – OK with 3.19.3..

After trials with earlier versions, the Pi and Pi2 updated to Kernel 3.19.3 without too much effort..

Source from here:  https://github.com/raspberrypi/linux/tree/rpi-3.19.y

Pi:

Pidora release 2014 (Raspberry Pi Fedora Remix)
Kernel 3.19.3 on an armv6l (ttyAMA0)
........
]# uname -a
Linux rgpi 3.19.3 #1 PREEMPT Fri Mar 27 23:55:44 PDT 2015 armv6l armv6l armv6l GNU/Linux

Pi2:

Fedora release 21 (Twenty One)
Kernel 3.19.3-v7 on an armv7l (ttyAMA0)
.............
]# uname -a
Linux rgpi2 3.19.3-v7 #1 SMP PREEMPT Sat Mar 28 00:50:19 PDT 2015 armv7l armv7l armv7l GNU/Linux

I also discovered the source of the ‘sluggish’ performance of the Pi2 – I had accidentally put an older version of the boot binaries etc. in the /boot directory, which resulted in only 256MB of total memory!

Robert Gadsdon.   March 28, 2015.