[help] Trying to build a close to mainline image
#4
@MarkHaysHarris777 : thanks, I was fearing this reply (which is the one you made to fire219 too  Wink )
I will when I have a bit more time and maybe my pine64 at hand.

@fire219 : thanks for the writeup, I'm sure it will be helpful as it probably is one of the most comprehensive I've read.
I did read your post on 4.7.0-rc1 but really I want to be able to build my own kernel to decide which bit I want (well it seems not much things are working anyway  Smile  )

1. I have, that's my base, but i'm working on filesystem for now
Took it from here : https://github.com/apritzel/pine64/tree/master/images

2. I used this page
http://linux-sunxi.org/Pine64#Mainline_kernel
and picked the "stable" kernel info from here
http://linux-sunxi.org/Mainline_Kernel_H...e_releases
As it turns out it's probably a 4.7.0 kernel as the "stable" kernel git link provided is actually not pointing to stable but to RC...
Did not go to icenowy's repo.

3. yep got that one covered I think : crossbuild-essential-arm64
4. went with
make defconfig
5. ARCH=arm64 make -j2 Image dtbs modules
went fairly short

6.
Code:
$ xzcat pine64_firmware-20160601.img.xz | dd of=/AARCH/firmware/apritzel.img bs=1M
$ fdisk -lu /AARCH/firmware/apritzel.img
$ mount -o loop,offset=$((2048 * 512)) /AARCH/firmware/apritzel.img /mnt
$ cd /mnt
$ ls
boot.scr.uimg  sun50i-a64-pine64.dtb  sun50i-a64-pine64-plus.dtb

The dtb files are present in the firmware, why use the ones from the compilation ?
Is it not just a file describing the devices ? (may be a silly question)

I have the compiled kernel, so I should just copy that to this image, if I understand it right ?
From my findings, either at the root or in boot/

7. Ok that's another point where I'm not clear
From https://github.com/apritzel/pine64/blob/.../README.md
It seems it's my task to decide which partition and modify the boot script (not especially on p5)

I looked it up:

Code:
root@debianCross:/mnt# ls
boot.scr.uimg  sun50i-a64-pine64.dtb  sun50i-a64-pine64-plus.dtb
root@debianCross:/mnt# dumpimage -i boot.scr.uim boot.cmd
dumpimage: Can't open "boot.scr.uim": No such file or directory
root@debianCross:/mnt# dumpimage -i boot.scr.uimg boot.cmd
root@debianCross:/mnt# ls
boot.cmd  boot.scr.uimg  sun50i-a64-pine64.dtb sun50i-a64-pine64-plus.dtb
root@debianCross:/mnt# cat boot.cmd 
?fatload mmc 0 $kernel_addr_r Image
fatload mmc 0 $fdt_addr_r $fdtfile
setenv bootargs "console=ttyS0,115200n8 ro root=/dev/mmcblk0p5 rootwait earlycon=uart,mmio32,0x01c28000"
booti $kernel_addr_r - $fdt_addr_r
root@debianCross:/mnt#

So it seems i can use p2 from the existing boot script ?
Why should i do an extended p5 in p2 ?

8&9. I should be able to do (although not a believer...)
I don't have the UART serial adapter...
  Reply


Messages In This Thread
RE: [help] Trying to build a close to mainline image - by erreip2221 - 08-03-2016, 05:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine64 Debian Stretch/mainline [4.14.7] CallMeFoxie 50 130,458 07-22-2019, 09:24 PM
Last Post: amp
  Script to build pure Debian images for Pine64+ amp 1 4,660 05-01-2019, 09:09 PM
Last Post: tllim
  Is there just one fuctioning Debian Desktop image? KNERD 7 14,458 03-29-2019, 02:00 AM
Last Post: desai_amogh
Question A64+ vs. A64-LTS - Build boots? Baldnerd 10 15,064 09-05-2018, 11:48 PM
Last Post: tllim
  Gambas3 installation on Debian image linusky 0 2,408 11-29-2016, 11:10 AM
Last Post: linusky
  Very long boot time with Debian image Xabaras76 5 8,225 07-14-2016, 03:49 PM
Last Post: Xabaras76
  Cannot install Dstat on Debian Base PineA64 image ywoody 6 8,608 07-11-2016, 07:15 PM
Last Post: dkryder
  Image without Guu WhiteSnake86 1 3,220 07-06-2016, 11:11 PM
Last Post: MarkHaysHarris777
  Pine64 not booting with image m16bishop 9 11,332 06-13-2016, 10:50 AM
Last Post: robertvaldimarsson
  dose the debian-mate-jessie-lenny.raposo image support lcd display? MicroDiery 1 3,233 06-03-2016, 07:59 AM
Last Post: Luke

Forum Jump:


Users browsing this thread: 2 Guest(s)