Kernel Development Discussion Thread

Discussion in 'Huawei Ideos S7 Development' started by razor950, Jan 19, 2011.

  1. ivyvisors

    ivyvisors Senior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    102
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    I've still had no luck with building kernels. But I think that's more me than anything, as I'm quite new to android.

    ~ivy
     
  2. SikYou

    SikYou Member

    Joined:
    Dec 25, 2010
    Messages:
    180
    Likes Received:
    17
    Trophy Points:
    87
    Location:
    Detroit
    Tablet / Device:
    S7
    I'm going to try some changes to the framebuffering tonight and see where that gets me with the cwr port.

    Sent from my nonsensikal froyo
     
  3. ivyvisors

    ivyvisors Senior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    102
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    SikYou, what did you do to get the kernel compiled?

    ~ivy
     
  4. xaueious

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,483
    Likes Received:
    436
    Trophy Points:
    222
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    I set my environment up via the guide here: Howto: Build a Kernel Port - CyanogenMod Wiki

    To unpack and repack the boot.img, you will need to use the Pearl scripts. Be sure to specify --base 0x20000000 to the mkbootimg commandline when repacking.

    To compile the kernel, you can just download the source from razor's github. Then get your config.gz, unpack it to .config, and do 'make oldconfig' followed by 'make -j4' (4 being the number of threads you want for the operation). Wait for it to compile, and the output will be a zImage.

    You can repack the zImage with the extract ramdisk with a command like: repack-H.pl zImage ramdisk boot.img

    Then use fastboot to either 'fastboot boot' to test, or do a 'fastboot flash boot boot.img' to make changes permanent.
     
    • Like Like x 8
  5. pvella

    pvella Senior Member

    Joined:
    Dec 20, 2010
    Messages:
    392
    Likes Received:
    38
    Trophy Points:
    102
    Location:
    Melbourne
    Tablet / Device:
    Huawei S7
    Thanks. Been looking for this info. Nice work.

    Sent from my S7
     
  6. ivyvisors

    ivyvisors Senior Member

    Joined:
    Dec 29, 2010
    Messages:
    233
    Likes Received:
    52
    Trophy Points:
    102
    Location:
    melbourne
    Tablet / Device:
    huawai s7
    Thanks for this xaueious, I'm going to see what I can get going tonight when I get home =)

    ~Ivy
     
  7. xaueious

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,483
    Likes Received:
    436
    Trophy Points:
    222
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Wifi compiles and works now with Huawei's latest sources. But it might just have been that I never did it properly.
     
    • Like Like x 2
  8. xaueious

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,483
    Likes Received:
    436
    Trophy Points:
    222
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Just repeating myself here, but no changes were necessary to the kernel to get the recovery image 'working' as it stands.
     
  9. Entropy

    Entropy Member

    Joined:
    Dec 24, 2010
    Messages:
    42
    Likes Received:
    1
    Trophy Points:
    72
    Location:
    Owego, NY
    Tablet / Device:
    Huawei S7
    Apparently a lot of architecture changes were made between froyo and gingerbread that have caused a lot of things to need to be reimplemented.

    Probably best to get an open source eclair build running first - then there is at least have proper source for everything. (Some of the drivers are implemented in userland - for example Qualcomm GPS drivers are in userspace for the xdandroid froyo builds with the exception of some on-chip RPC stuff in the kernel.)
     
  10. rictec

    rictec Member

    Joined:
    Jan 30, 2011
    Messages:
    127
    Likes Received:
    24
    Trophy Points:
    87
    hi
    something is wrong on my setup
    everytime i try to unpack with the unpack-H.pl i get 2 files
    mtd0.img.kernel and mtd0.image-ramdisk.gz the problem is i cant gzip -dc i allways get not a gzip file
    any ideas why?

    and if i use unpack-bootimg.pl on the some file i get the ramdisk but the kernel this time is .gz..
    now i m lost lol

    help!! :)
     
    Last edited: Mar 6, 2011
  11. xaueious

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,483
    Likes Received:
    436
    Trophy Points:
    222
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Use dump_image instead of dd to dump the mtd. Or I think you need to trim off the trailing bits in the mtd dump.
     
  12. rictec

    rictec Member

    Joined:
    Jan 30, 2011
    Messages:
    127
    Likes Received:
    24
    Trophy Points:
    87
    oh i was using the cat /dev/mtd
    that dump_image is the same command used to do nandroid right?
     
  13. xaueious

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,483
    Likes Received:
    436
    Trophy Points:
    222
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Not sure. I haven't looked at the sources for nandroid. It's magic to me :D
     
  14. rictec

    rictec Member

    Joined:
    Jan 30, 2011
    Messages:
    127
    Likes Received:
    24
    Trophy Points:
    87
    it worked with that file now your repack is telling me unknow command on the mkbootimg
    at least i have a kernel and a ramdisk dir with no errors using the recovery nandroid backup ;)
    why does mkbooting does this if i do it manually i got a 2.4 MB boot.img so something is still wrong

    this was hard
    after unpack my 2.4Mb packet file everything is there so i put it on my s7 and boot
    the result
    # busybox uname -a
    Linux localhost 2.6.29-s70 #4 PREEMPT Sun Mar 6 14:18:53 WET 2011 armv7l GNU/Linux
    now how do we put wireless in there too?
    ;)
     
    Last edited: Mar 6, 2011
  15. xaueious

    xaueious Administrator Staff Member

    Joined:
    Jul 9, 2010
    Messages:
    3,483
    Likes Received:
    436
    Trophy Points:
    222
    Location:
    Canada
    Tablet / Device:
    Asus Transformer TF300, Huwaei Ideos S7-104, HSG X5A, (Past APAD IMX515, APAD RK2808, RK2818 RT7)
    Very nice :D

    You can drop it in the folder, then modify the makefile and the kconfig files in /driver/net/wireless/

    I did make more changes to my makefile of bcm4329 because it was missing a few things. You can find the original by Huawei makefile under the src folder. I think I forgot to add the deep sleep EXTRA_CFLAG and I forgot what else.

    Here:
    http://www.androidtablets.net/forum...broadcom-bcm4329-android-2-1-a.html#post52752

    I don't have GIT knowledge. I did use gitorious for about 2 weeks, but I redid my setup and I have no idea how to do this anymore.
     

Share This Page