U-Boot, partition layout and flash
#11
I am also looking for the next steps on assembling the pieces after grabbing the SDK and compiling.  Here is what I am seeing from adb connected via the network. Is there more than just dd'ing the products from out/target/product/tulip-t1 or is there some script that I am missing and not running. 

root@tulip-chiphd:/ # cat /proc/partitions
major minor  #blocks  name

 253        0     262144 zram0
 179        0   31276032 mmcblk0
 179        1    4971519 mmcblk0p1
 179        2      32768 mmcblk0p2
 179        3          1 mmcblk0p3
 179        5      16384 mmcblk0p5
 179        6      16384 mmcblk0p6
 179        7    1572864 mmcblk0p7
 259        0      16384 mmcblk0p8
 259        1      32768 mmcblk0p9
 259        2     786432 mmcblk0p10
 259        3      16384 mmcblk0p11
 259        4      16384 mmcblk0p12
 259        5      81920 mmcblk0p13

root@tulip-chiphd:/dev/block # ls -l by-name
lrwxrwxrwx root     root              2009-12-31 16:00 UDISK -> /dev/block/mmcblk0p1
lrwxrwxrwx root     root              2009-12-31 16:00 alog -> /dev/block/mmcblk0p13
lrwxrwxrwx root     root              2009-12-31 16:00 boot -> /dev/block/mmcblk0p6
lrwxrwxrwx root     root              2009-12-31 16:00 bootloader -> /dev/block/mmcblk0p2
lrwxrwxrwx root     root              2009-12-31 16:00 cache -> /dev/block/mmcblk0p10
lrwxrwxrwx root     root              2009-12-31 16:00 env -> /dev/block/mmcblk0p5
lrwxrwxrwx root     root              2009-12-31 16:00 metadata -> /dev/block/mmcblk0p11
lrwxrwxrwx root     root              2009-12-31 16:00 misc -> /dev/block/mmcblk0p8
lrwxrwxrwx root     root              2009-12-31 16:00 private -> /dev/block/mmcblk0p12
lrwxrwxrwx root     root              2009-12-31 16:00 recovery -> /dev/block/mmcblk0p9
lrwxrwxrwx root     root              2009-12-31 16:00 system -> /dev/block/mmcblk0p7

root@tulip-chiphd:/dev/block # cat /proc/cmdline

enforcing=1 earlyprintk=sunxi-uart,0x01c28000 initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p7 init=/init partitions=bootloader@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6Confusedystem@mmcblk0p7:misc@mmcblk0p8:recovery@mmcblk0p9:cache@mmcblk0p10:metadata@mmcblk0p11:private@mmcblk0p12:alog@mmcblk0p13:UDISK@mmcblk0p1 cma=384M androidboot.selinux=permissive androidboot.serialno=8400519008005c1b014b androidboot.hardware=sun50iw1p1

I wonder if part of the solution might be found here:
http://linux-sunxi.org/Boot_Android_from...to_SD_card

So far, I haven't done much other than:

source build/envsetup.sh
make clean
lunch tulip_t1-eng
mka

Any hints would be appreciated. I am missing a big conceptional piece somewhere.  

I guess I will use the loop dev next and see what I can see from the linux side.

Thanks in advance for any pointers.


Jim
#12
Hey jad you can extract your image with awimage and verify that contain a RFSFAT16_BOOTLOADER_00000
#13
(06-02-2016, 07:13 AM)kap1r0t0 Wrote: Hey jad you can extract your image with awimage and verify that contain a RFSFAT16_BOOTLOADER_00000

I haven't generated anything that awimage can read that I know of. I tried it on various images that I thought might work and it core dumped. Brought it up in gdb to see why and it didn't like the encryption so disabled that and it doesn't really do anything on the images I have. 

Have you been able to use it on your A64 images?

Thus far I have generated the following images via make in my android tree:

boot.img - boot header Android + kernel + ramdisk (gzip+cpio)
ramdisk.img - same as ramdisk from above
ramdisk_recovery.img (gzip+cpio)
recovery.img (Android Header + kernel + ramdisk_recovery.img
system.img (ext4 sparse file)

I did pull the boot.img from pine64.org and compared it to the ones I generated from the SDK and from the one I pulled from the sdcard with dd and all 3 look the same.

Did a few different strings/grep combinations on the included kernel.img file from each of the boot.img so not exhaustive by any means to prove they are the same. ;-) 

At this point, I think I might just dd the images in because something doesn't seem right with what I am doing using their tree. I also thought about generating OTA updates via make otapakage method and pursue that method. I could also unpack/repack their images from the sdcard and make changes as a 3rd way I suppose.

I am interested in how it is booting up so I am probably going to dig into that and try to understand how/why they assembled this android image the way they did. Maybe this SDK will make more sense after that. 

I am enjoying this little board but I need to get some more tools and try to see it when its booting up. I am currently just using adb over the tcp/ip.

Jim
#14
Yes, when I use the pack command the resulted image can be extracted by awimage , but this does not have bootloader .


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PINE A64 2GB Kickstarter]How to boot android from external SSD v1n1c1uS 1 3,797 01-15-2018, 11:05 PM
Last Post: tllim
  Kickstarter edition wont boot to android bilbo6209 1 3,687 01-09-2018, 08:03 PM
Last Post: tllim
  Boot hangs on pine64, how to debug? olh 1 3,962 08-29-2017, 12:04 AM
Last Post: tllim
  Pine64+ 1G: boot loader details required Tanveer 4 7,657 07-29-2017, 09:07 PM
Last Post: Tanveer
  Pine 2GB won't boot Android anymore Bluphire 5 8,511 05-29-2017, 09:34 PM
Last Post: dkryder
  Custom boot animations Bluphire 4 6,442 05-05-2017, 02:00 AM
Last Post: Quezbeme
  Change Android boot logo? ipsw 5 11,763 05-03-2017, 09:39 PM
Last Post: Quezbeme
  Do apps run in the background at boot up? Penfold 3 5,204 03-10-2017, 02:19 PM
Last Post: mporeh
  Partition Table xalius 1 3,288 07-24-2016, 05:08 AM
Last Post: xalius
  Boot up issue... shadow22 9 10,799 06-23-2016, 07:44 AM
Last Post: shadow22

Forum Jump:


Users browsing this thread: 1 Guest(s)