Building LeMaker Android 4.2 from Source

129 42207
I have pushed a bananapro branch to the github repo.

dlanor  
tony_zhang replied at Fri Dec 19, 2014 22:08
I have pushed a bananapro branch to the github repo.

Does that 'bananapro' branch contain anything incompatible to 'bananapi' ?

(In the long term that would imply that 'bananapi' users will be abandoned by future developments... !!!)

I would much prefer it if 'bananapro' and 'bananapi' could use the same releases based on identical sources.
The differencies should best be handled in other ways than splitting the distros. (runtime branching)

Best regards: dlanor

ChrisP  
I think that seing where the modification are done, it should be pretty easy to just add another target for kernel/android , like sugar-bananapi and sugar-bananapro.

For now I'm still figthing with lemaker kernel integration, and to be more precise with u-boot and android filestructure integration. Apparently using lemaker u-boot is a dead end since he's not able to load some of the partition packed by lichee, and using sunxi u-boot is stuck during boot due to a machid mismatch ...

But I think I found a way for the last scenario.

And I even not fine tuned yet the kernel settings ... The road is longer that I though.

ChrisP  
Well, the kernel is just starting, and that's all, nothing more ...

ChrisP  
Mmmmh, whatever I try, it allways end with kernel stuck at initial start, with the following trace during boot:

I think now the various kernel, u-boot and modules are properlly inserted in the image. I have no idea what is needed to fix the kernel not starting.

Help !!!!!!
  1. HELLO! BOOT0 is starting!
  2. boot0 version : 3.0.0
  3. dram size =1024
  4. card boot number = 0
  5. card no is 0
  6. sdcard 0 line count 0
  7. [mmc]: SD/MMC Card: 4bit, capacity: 7639MB
  8. [mmc]: vendor: Man 0x00284245 Snr 0x92282398
  9. [mmc]: product:
  10. [mmc]: revision: 1.0
  11. sdcard 0 init ok
  12. The size of uboot is 0x000a0000.
  13. sum=0xc6f18907
  14. src_sum=0xc6f18907
  15. Succeed in loading uboot from sdmmc flash.
  16. Ready to disable icache.
  17. Jump to secend Boot.
  18. [      0.169]

  19. U-Boot 2011.09-rc1-dirty (Nov 08 2013 - 11:06:32) Allwinner Technology

  20. [      0.177]version: 1.1.0
  21. [      0.180]pmbus:   ready
  22. [      0.284]PMU: AXP209
  23. [      0.288]PMU: AXP20x found
  24. [      0.290]PMU: bat ratio = 100
  25. [      0.294]after set, dcdc2 =1400mv
  26. [      0.297]PMU: dcdc2 1400
  27. [      0.300]PMU: pll1 912 Mhz
  28. boot_clock = 912
  29. dcdc2_vol = 1400
  30. [      0.308]after set, dcdc2 =1400mv
  31. dcdc3_vol = 1250
  32. ldo2_vol = 3000
  33. ldo3_vol = 2800
  34. ldo4_vol = 2800
  35. power_start = 0
  36. storage_type = -1
  37. usb_recovery = 1
  38. find power_sply to end
  39. fel key old mode
  40. run key detect
  41. no key found
  42. no key input
  43. dram_para_set start
  44. dram_para_set end
  45. [      0.344]DRAM:  1 GiB
  46. relocation Offset is: 35b27000
  47. donn't initialize ther user_gpio (main_key:boot_init_gpio)
  48. DRV_DISP_Init: opened
  49. [      0.558]boot_disp.output_type=2
  50. [      0.561]boot_disp.output_mode=5
  51. [      0.564]boot_disp.auto_hpd=1
  52. Hdmi_dvi_enable is NULL
  53. Hdmi_get_input_csc is NULL
  54. workmode = 0
  55. MMC:     0
  56. SUNXI SD/MMC: 0
  57. Man 284245 Snr 92282398

  58. 1.0
  59. [      0.626]sunxi flash init ok
  60. In:    serial
  61. Out:   serial
  62. Err:   serial
  63. --------fastboot partitions--------
  64. -total partitions:11-
  65. -name-        -start-       -size-
  66. bootloader  : 1000000       1000000
  67. env         : 2000000       1000000
  68. boot        : 3000000       1000000
  69. system      : 4000000       20000000
  70. data        : 24000000      40000000
  71. misc        : 64000000      1000000
  72. recovery    : 65000000      2000000
  73. cache       : 67000000      14000000
  74. private     : 7b000000      1000000
  75. databk      : 7c000000      10000000
  76. UDISK       : 8c000000      0
  77. -----------------------------------
  78. base bootcmd=run setargs_mmc boot_normal
  79. bootcmd set setargs_mmc
  80. key 0
  81. recovery key high 6, low 4
  82. cant find fstbt value
  83. to be run cmd=run setargs_mmc boot_normal
  84. the user data'magic is bad
  85. WORK_MODE_BOOT
  86. board_status_probe
  87. sunxi_bmp_display
  88. WORK_MODE_BOOT
  89. [      0.729]Hit any key to stop autoboot:  0
  90. read boot or recovery all
  91. [      1.213]sunxi flash read :offset 3000000, 11476806 bytes OK
  92. [      1.223]ready to boot
  93. [      1.226]
  94. Starting kernel ...


Copy the Code
(then nothing more, but the A20 logo is visible on my HDMI screen.

and more usb wi-fi support can be added?

ChrisP  
Roystrang86 replied at Tue Dec 23, 2014 14:34
and more usb wi-fi support can be added?

Well, I am not sure that going to 3.4.103 kernel will add lots of additionnal wifi drivers.

By modifiying the kernel config, you should be able to add them for your specific wifi device. But having no wifi dongle, even in the standard version, I cannot test it then cannot really add it.

ChrisP  
Hi, I finally pushed back my local repo of the original build done by Mattrix, it's here:

https://github.com/ChrisP-Android/Android-4.2.2-SDK2-For-BananaPi

liab  
Today I made a git clone. It stops with

make: *** Keine Regel vorhanden, um das Target »dalvik/vm/mterp/out/InterpAsm-x86.S«,
  benötigt von »out/host/linux-x86/obj/SHARED_LIBRARIES/libdvm_intermediates/mterp/out/InterpAsm-x86.o«, zu erstellen.  Schluss.

ChrisP  
liab replied at Mon Dec 29, 2014 22:36
Today I made a git clone. It stops with

make: *** Keine Regel vorhanden, um das Target »dalvik/vm/ ...

Hi liab,

did you run the install.sh script to be sure to have every prerequisite packages ?

You have to log in before you can reply Login | Sign Up

Points Rules