Well now you have uploaded the new sources, I thought I do a quick fast run just to see if I could get a basic one running.
I am afraid I think you will need to make major changes to your documentation, and give us all new guidance…
I compiled as you have left it and loaded it to VIM2.
ERRORS:
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
** File not found uImage **
** File not found uInitrd **
** File not found kvim2.dtb **
ee_gate_off …
Wrong Image Format for bootm command
ERROR: can’t get kernel image!
So straight up I can see that for some reason, it is expecting to find ?32 bit files? because for 64bit Linux the Image should be called Image - not uImage. Same goes for uInitrd.
When I compiled linux I did:
make -j6 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image kvim2.dtb modules
So kvim2 was produced. I also confirmed the package.conf (grabbed from somewhere else in your github) and modified it to look for kvim2
So I know that stuff was correct, since the image was made. its just the image is obviously all a mess.
NOTE:: This means you must have also messed up the VIM1 building - which means all your instructions for any model will be broken.
Also: I found also one foolish typo, so are there more?
" … console=tty0 no_con sole_suspend consoleb … "
So there is a rogue [TAB] sitting in the middle of ‘no_console_suspend’
I am also about to cancel my order for the other VIM unit. This is really poor work.
Can you please provide a time?
Whilst I could try to work out all your changes, that would be tedious. I will have enough to do making it work the way I would like, without having to decipher how you operate.
So I understand the ‘new’ arm speak for kernels and that uImage is made with mkimage. Did that. Not sure that I have the load address correct.
mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n Linux -d Image uImage
I now see that this and dtb are in the /boot folder. So these new build dont look like bastardised Android format Linux builds, but rather they are “proper” linux format.
This is the short of it:
I am in chroot - so ignore pathing etc here - files were placed correctly.
Built u-boot, no modifications
Built kernel, no changes.
mkinitramfs -o /boot/initrd.img
mkimage -n ‘linux-4.9’ -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -d /boot/Image /boot/uImage
mkimage -A arm64 -O linux -T ramdisk -a 0x0 -e 0x0 -n “initrd” -d /boot/initrd.img /boot/uInitrd
copied kvim2.dtb, uImage and uInitrd to /boot (if they were not already there. also copied Image and initrd.img as backup)
Made a ramdisk.img because it still wants one (because your scripts for aml-packer still expects it)
7. mkbootimg --kernel Image --ramdisk initrd.img -o ramdisk.img
make the emmc image: aml_image_v2_packer -r package.conf ./ update.img
Load it to emmc and run:
<----SNIP---->
start dts,buffer=00000000b3edb1b0,dt_addr=00000000b3edb1b0
parts: 3
00: logo 0000000002000000 1
01: ramdisk 0000000002000000 1
02: rootfs ffffffffffffffff 4
init_part() 293: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
check pattern success
mmc env offset: 0x6c00000
<----SNIP---->
<----SNIP---->
gpio: pin GPIOAO_2 (gpio 102) value is 1
Product checking: pass!
Hit Enter or space or Ctrl+C key to stop autoboot -- : 0
** File not found uImage **
** File not found uInitrd **
** File not found kvim2.dtb **
ee_gate_off ...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory
Usage:
rsvmem check - check reserved memory
rsvmem dump - dump reserved memory
rsvmem check failed
ee_gate_on ...
kvim2#
I mount the rootfs similar to the docs here. mount -o loop rootfs.img /rootfs
And I have already put the real files in /rootfs/boot. So they should be in the correct location. So no need for static links.
Well this is good. I can at least tinker and start doing what I need to do.
Can you please respond when you can regarding drivers you are using for your 4.9.40 release (wifi/bt/gpu)
It looks like the same ones from the ?fenix? folder in your github.
I hope we see a detailed howto on this all soon. I notice that I still have some problems.
I cannot hold power button and push reset to get into u-boot mode now! (at least I have serial access)