[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#735092: flash-kernel: add Raspberry Pi support



On Sun, Jan 12, 2014 at 06:00:24PM +0000, Ben Hutchings wrote:
> On Sun, 2014-01-12 at 18:34 +0100, Karsten Merker wrote:

> > The attached patch adds Raspberry Pi support to flash-kernel.
[SNIP]
> > --- a/README
> > +++ b/README
> [...]
> > +* Rpi-ConfigTxt-Path: (optional) Raspberry Pi firmware configuration pathname.
> > +  The Raspberry Pi firmware configuration is stored in a text file on the
> > +  first (FAT formatted) partition of the SD card in the system and 
> > +  contains settings like kernel file name, video mode, memory split 
> > +  between CPU and GPU, overclocking parameters, etc. Rpi-ConfigTxt-Path
> > +  contains the full path to this file (default value: /boot/config.txt).
> > +
> [...]
> 
> So the boot partition is mounted at /boot?  Doesn't that make it
> impossible to install packaged kernels (as dpkg needs to create hard
> links)?

Installing a kernel package (locally built using make-kpkg) with
a VFAT /boot does not show any problems here:

root@pi:~# mount | grep /boot
/dev/mmcblk0p1 on /boot type vfat /(rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
root@pi:~# dpkg -i linux-image-3.12.6-rpi+_2014010201_armhf.deb 
Selecting previously unselected package linux-image-3.12.6-rpi+.
(Reading database ... 73003 files and directories currently installed.)
Unpacking linux-image-3.12.6-rpi+ (from linux-image-3.12.6-rpi+_2014010201_armhf.deb) ...
Examining /etc/kernel/preinst.d/
Done.
Setting up linux-image-3.12.6-rpi+ (2014010201) ...

 Hmm. There is a symbolic link /lib/modules/3.12.6-rpi+/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/3.12.6-rpi+/build


 Hmm. The package shipped with a symbolic link /lib/modules/3.12.6-rpi+/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/3.12.6-rpi+/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.12.6-rpi+ /boot/vmlinuz-3.12.6-rpi+
update-initramfs: Generating /boot/initrd.img-3.12.6-rpi+
flash-kernel: deferring update (trigger activated)
run-parts: executing /etc/kernel/postinst.d/zz-flash-kernel 3.12.6-rpi+ /boot/vmlinuz-3.12.6-rpi+
flash-kernel: deferring update (trigger activated)
Processing triggers for flash-kernel ...
flash-kernel: installing version 3.12.6-rpi+
root@pi:~#

Regards,
Karsten
-- 
Gem. Par. 28 Abs. 4 Bundesdatenschutzgesetz widerspreche ich der Nutzung
sowie der Weitergabe meiner personenbezogenen Daten für Zwecke der
Werbung sowie der Markt- oder Meinungsforschung.


Reply to: