Compile the kernel with debian and BPi-M3

What do I need to change the configuration BPI-SINOVOIP / BPI-M3-bsp to be able to configure the kernel using the direct Banana-Pi-M3 running debian jessie ?

Hi,

The script that I posted before should have all the necessary information for you to build a fresh mainline kernel with jessie.

Did that not work for you ?

Cheers,

Damien

??? What script ? Any further information ?

Hi,

I thought that you had tested it before ? I can’t seem to find it on the forum anymore though, so perhaps they deleted it for some reason shrug

Anyway, I will upload it to my webserver so that they can’t take it down. http://tusker.org/buildBananaPiM3OnSdCard.sh

Cheers,

Damien

Yes , I remember . But it was armbian forum. Your script is not working yet quite correctly . Tonight will test this new and let you know . Greetings

@tusker I found a few bugs and I test the script on to your part … " ${SDCARD}1" must be “${SDCARD}p1” /// Line 31,47,49

Line51 “qemu-debootstrap”… - only “debootstrap” …(?)

After compiling the kernel - - .“dtb” (sun8i-a83t-sinovoip-bpi-m3.dtb) has not been generated… (Errors)

…Work in Progress… Great…

Hi,

The 1 vs p1 is in relation to the type of driver used to load the device. Perhaps SDCARD needs to have two variables, SDCARD and SDCARD_PARTITION_ONE, where SDCARD_PARTITION_ONE defaults to ${SDCARD}1.

Ie, when I insert a USB storage device, I get the following: [117453.388577] scsi host6: usb-storage 3-1:1.0 [117455.087561] scsi 6:0:0:0: Direct-Access Sony Storage Media 0100 PQ: 0 ANSI: 0 CCS [117455.088008] sd 6:0:0:0: Attached scsi generic sg2 type 0 [117455.088146] sd 6:0:0:0: [sdc] 31303680 512-byte logical blocks: (16.0 GB/14.9 GiB) [117455.088605] sd 6:0:0:0: [sdc] Write Protect is off [117455.088607] sd 6:0:0:0: [sdc] Mode Sense: 43 00 00 00 [117455.089078] sd 6:0:0:0: [sdc] No Caching mode page found [117455.089081] sd 6:0:0:0: [sdc] Assuming drive cache: write through [117455.102043] sdc: sdc1 sdc2 [117455.103672] sd 6:0:0:0: [sdc] Attached SCSI removable disk

qemu-debootstrap is necessary, since it sets up the cross architecture setup correctly. You can find it in debian/ubuntu package qemu-user-static

Let me know if that sorts it out for you!

Cheers,

Damien

I use SDCard physical - not USB - Stick… :wink: At night I will continue to work…

Great

@tusker

Ubuntu or is this authoring environment?

Ubuntu was the authoring environment, so the dmesg posted and the qemu-user-static package relates to the building/authoring system

can reference this document:

W: Target architecture is the same as host architecture; disabling QEMU support
I: Running command: debootstrap --arch armhf --verbose --include=linux-image-armmp-lpae,locales,sunxi-tools,firmware-linux,ssh,debconf --components=main,non-free jessie /mnt/NEW http://ftp.at.debian.org/debian/

to be continued