Petri Airio Posted November 25, 2015 Share Posted November 25, 2015 My board: Banana Pi, 1Ghz Dual Core, 1GB DDR3, SATA The os base: image http://www.bananapi.com/index.php/forum/others/1372-bpi-m1-bpi-m1-plus-new-image-ubuntu15-04-was-released#3306 Which is apt-get dist-upgraded to wily. I am trying to install self compiled kernel packages from: http://www.armbian.com/github/ I have succesfully used the compile.sh script and output for that is: total 19M-rw-r--r-- 1 petria petria 45K Nov 23 10:03 linux-dtb-next-sunxi_4.6_armhf.deb-rw-r--r-- 1 petria petria 52K Nov 23 10:03 linux-firmware-image-next-sunxi_4.6_armhf.deb-rw-r--r-- 1 petria petria 6.7M Nov 23 10:04 linux-headers-next-sunxi_4.6_armhf.deb-rw-r--r-- 1 petria petria 12M Nov 23 10:05 linux-image-next-sunxi_4.6_armhf.deb-rw-r--r-- 1 petria petria 169K Nov 23 10:05 linux-u-boot-next-bananapi_4.6_armhf.deb When I try to install packages on bananapi I get errors: root@bananapi:~/kernel# dpkg -i *.deb(Reading database ... 171422 files and directories currently installed.)Preparing to unpack linux-dtb-next-sunxi_4.6_armhf.deb ...Unpacking linux-dtb-next-sunxi (4.6) over (4.6) ...dpkg: error processing archive linux-dtb-next-sunxi_4.6_armhf.deb (--install): error setting ownership of './boot/dtb/sun6i-a31-hummingbird.dtb': Operation not permitted I suspect that is because the /boot partition is in VFAT format ? Can I change it to ext4 or so or how should I proceed to get armbian .deb kernel packages installed and working ? root@bananapi:~/kernel# dpkg -i *.deb(Reading database ... 171422 files and directories currently installed.)Preparing to unpack linux-dtb-next-sunxi_4.6_armhf.deb ...Unpacking linux-dtb-next-sunxi (4.6) over (4.6) ...dpkg: error processing archive linux-dtb-next-sunxi_4.6_armhf.deb (--install): error setting ownership of './boot/dtb/sun6i-a31-hummingbird.dtb': Operation not permitted Link to comment Share on other sites More sharing options...
Igor Posted November 25, 2015 Share Posted November 25, 2015 No, it should be possible to install on FAT drive. Remove previously installed packet if exists. Do you have enough free space on boot partition? What's now on it? Link to comment Share on other sites More sharing options...
Petri Airio Posted November 25, 2015 Author Share Posted November 25, 2015 No, it should be possible to install on FAT drive. Remove previously installed packet if exists. Do you have enough free space on boot partition? What's now on it? Partition is 50M size. I tried so that removed everything from there (rm -rf boot/*) and then issued the dpkg -i ... Link to comment Share on other sites More sharing options...
Igor Posted November 25, 2015 Share Posted November 25, 2015 OK. I'll check if it's a problem made by me .. Link to comment Share on other sites More sharing options...
Petri Airio Posted November 25, 2015 Author Share Posted November 25, 2015 OK. I'll check if it's a problem made by me .. Also tried: unmounted VFAT /boot so /boot was actually on / root filesytem using ext4 and then dpkg -i *.deb went thru correctly .. Seems like it doesn't work when /boot is using VFAT filesystem.. Link to comment Share on other sites More sharing options...
Igor Posted November 25, 2015 Share Posted November 25, 2015 Perhaps it's some weird FAT type ... I made a test build, 64M boot partition and root for the rest. Here is my fdisk print: Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 2048 133119 131072 64M e W95 FAT16 (LBA) /dev/mmcblk0p2 133120 15677439 15544320 7.4G 83 Linux I can normally install DTB on this but if there is already installed I got an error: dpkg -i linux-dtb-next-sunxi_4.6_armhf.deb (Reading database ... 48751 files and directories currently installed.) Preparing to unpack linux-dtb-next-sunxi_4.6_armhf.deb ... Unpacking linux-dtb-next-sunxi (4.6) over (4.6) ... dpkg: error processing archive linux-dtb-next-sunxi_4.6_armhf.deb (--install): unable to make backup link of `./boot/dtb/sun7i-a20-cubieboard2.dtb' before installing new version: Operation not permitted Errors were encountered while processing: linux-dtb-next-sunxi_4.6_armhf.deb Link to comment Share on other sites More sharing options...
Petri Airio Posted November 25, 2015 Author Share Posted November 25, 2015 Ok, got it working now. I suspect the error was due there was some thing in background automounting the same /boot partition to the desktop like: /dev/mmcblk0p1 50M 16M 34M 33% /media/....plaaplala Now the /boot looks like this: http://pastebin.com/hrq5vDvn Is this correct now and it will boot to new kernel ? Link to comment Share on other sites More sharing options...
Igor Posted November 27, 2015 Share Posted November 27, 2015 You also need a boot script. https://github.com/igorpecovnik/lib/blob/second/config/boot.cmd Make sure you compile / convert to boo.scr Link to comment Share on other sites More sharing options...
Recommended Posts