Page 1 of 6 123 ... LastLast
Results 1 to 20 of 103

Thread: Linux Kernel for Minix Neo X7

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Location
    Taiwan
    Posts
    12

    Linux Kernel for Minix Neo X7

    Hi All:


    Since phjanderson post the android kernel source of Minix Neo X7, and with his great kernel compiling tool called marvin, I try to build the linux kernel for Minix Neo X7 to support Ethernet and WiFi.

    Based on T428 linux configuration with default CPU/DDR speed,

    Here is the kernel image:
    https://www.dropbox.com/s/oexklp2sj4...vin_neo_x7.img

    Here is the recovery kernel image:
    https://www.dropbox.com/s/3a777coscj...7_recovery.img

    Here is the .config and modification which I did:
    https://www.dropbox.com/s/m2o6awrvg6...odified.tar.gz

    To enable WiFi,
    please sudo insmod /lib/modules/rkwifi.ko

    It is quite amazing that I could play 720p video without hardware acceleration, even some 1080p video could also play.

    Thanks for all contributions from so many people. So we could run Linux on RK3188.

  2. #2
    Junior Member
    Join Date
    Oct 2013
    Location
    Italy
    Posts
    5

    Tried with linuxium files

    Hi! First of all, thanks for this. I've been waiting for some good soul to step in and help with the X7.

    I tried to use your kernel... loaded the RkAndroidTool.exe with files from here :
    - loader: RK3188Loader(L)_V1.24.bin
    - parameter: linuxium-nand-parameter
    - misc: no misc, unchecked
    - kernel: your linux_kernel_marvin_neo_x7.img
    - boot: linuxium-boot.img
    - recovery: no recovery, unchecked
    - system: linuxium-ubuntu1204-desktop-rfs.img
    - backup: no backup, unchecked

    It boots to a minimal shell. So there is something I must be doing wrong.

    Should I also burn your recovery image (linux_kernel_marvin_neo_x7_recovery.img) ? I tried but there is an error condition if I put it on the recovery partition.

    INFO: Checking download data, Size (2638288)K, Checked(12016)K
    ERROR: Download file failed

    Perhaps it is not with the linuxium files that I should try... Total noob here. Further help kindly appreciated

    Quote Originally Posted by chenac View Post
    Hi All:


    Since phjanderson post the android kernel source of Minix Neo X7, and with his great kernel compiling tool called marvin, I try to build the linux kernel for Minix Neo X7 to support Ethernet and WiFi.

    Based on T428 linux configuration with default CPU/DDR speed,

    Here is the kernel image:
    https://www.dropbox.com/s/oexklp2sj4...vin_neo_x7.img

    Here is the recovery kernel image:
    https://www.dropbox.com/s/3a777coscj...7_recovery.img

    Here is the .config and modification which I did:
    https://www.dropbox.com/s/m2o6awrvg6...odified.tar.gz

    To enable WiFi,
    please sudo insmod /lib/modules/rkwifi.ko

    It is quite amazing that I could play 720p video without hardware acceleration, even some 1080p video could also play.

    Thanks for all contributions from so many people. So we could run Linux on RK3188.

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Location
    Taiwan
    Posts
    12
    Thread Starter

    kernel boot linux on SD Card

    Hi:

    This kernel is for booting Linux partition on SD card, and the partition's label should be linuxroot. I use lubuntu1304 linux image from linuxium. Sorry not to mention this in my first post.

    I perfer to run Linux on SD card, because I am not sure about the lifespan of internal nand flash.

  4. #4
    Member
    Join Date
    Oct 2012
    Location
    Belgrade, Serbia
    Posts
    74

    mk908 v.1

    Quote Originally Posted by chenac View Post
    Hi All:


    Since phjanderson post the android kernel source of Minix Neo X7, and with his great kernel compiling tool called marvin, I try to build the linux kernel for Minix Neo X7 to support Ethernet and WiFi.

    Based on T428 linux configuration with default CPU/DDR speed,

    Here is the kernel image:
    https://www.dropbox.com/s/oexklp2sj4...vin_neo_x7.img

    Here is the recovery kernel image:
    https://www.dropbox.com/s/3a777coscj...7_recovery.img

    Here is the .config and modification which I did:
    https://www.dropbox.com/s/m2o6awrvg6...odified.tar.gz

    To enable WiFi,
    please sudo insmod /lib/modules/rkwifi.ko

    It is quite amazing that I could play 720p video without hardware acceleration, even some 1080p video could also play.

    Thanks for all contributions from so many people. So we could run Linux on RK3188.
    Would your recovery kernel work with mk908 v.1 (minus WiFi)?

  5. #5
    Junior Member
    Join Date
    Oct 2013
    Location
    Italia
    Posts
    3
    This procedure will erase android, it's correct?
    There's the possibility of dualboot and start linux from usb pendrive?
    Thx in advice

  6. #6
    Junior Member
    Join Date
    Oct 2013
    Location
    Italy
    Posts
    5
    Ok, my noobness won't let me understand what you are saying right away.

    Which linuxium guide should I follow? I guess I have to replace his recovery and kernel img files with yours, right?
    Then I should use his lubuntu1304somethingsomething.img and 'dd' it to my sdcard instead?

    Sorry for the nagging. I looked around but there is more than one linuxium guide, and old multiboot, and new multiboot, and... it's not clear to me

    Quote Originally Posted by chenac View Post
    Hi:

    This kernel is for booting Linux partition on SD card, and the partition's label should be linuxroot. I use lubuntu1304 linux image from linuxium. Sorry not to mention this in my first post.

    I perfer to run Linux on SD card, because I am not sure about the lifespan of internal nand flash.

  7. #7
    Junior Member
    Join Date
    Oct 2013
    Location
    Italy
    Posts
    5
    Ok I found this guide:
    https://plus.google.com/109451178006...ts/ZkJteqRsesr

    Swapped kernel and recovery partitions with your stuff. Flashed everything as it is shown there to the minix.

    Then formatted an sdcard to ext4, labelled linuxroot, mounted and copied all from linuxium-ubuntu1304-lubuntu-desktop-rfs.img (found here: http://www.freaktab.com/showthread.p...K802IV-or-T428

    The system boots, 'jumps' to the sdcard, system start goes on, it looks like everything will end well, and then I get a black screen , perhaps when it starts X.

    My TV is 1080p... if that may give you a hint. But most probably it is just a case of me not finding the correct files/guide.

    Quote Originally Posted by dalcebolus View Post
    Ok, my noobness won't let me understand what you are saying right away.

    Which linuxium guide should I follow? I guess I have to replace his recovery and kernel img files with yours, right?
    Then I should use his lubuntu1304somethingsomething.img and 'dd' it to my sdcard instead?

    Sorry for the nagging. I looked around but there is more than one linuxium guide, and old multiboot, and new multiboot, and... it's not clear to me

  8. #8
    Junior Member
    Join Date
    Oct 2013
    Location
    Taiwan
    Posts
    12
    Thread Starter

    mini how-to

    To run Linux, I used "Minix Neo X7 - Finless 1.6" ROM as the base, and flash either normal linux kernel or recovery linux kernel, and prepare a SD card with linux root.

    1: The two kernels are provide for different purpose, that is
    a) normal kernel is used to replace android kernel, so you will boot into linux directly, no android any more.

    b) the recovery kernel is used to be placed on recovery partition, and you will boot into android first. Then use reboot app and choose "reboot to recovery" to boot linux.

    2: To prepare linux root on SD card, just
    sudo dd if=./linuxium-ubuntu1304-lubuntu-desktop-rfs.img of=/dev/sdx1 bs=1M , please make sure the sdx1 is right (like sdb1, sdc1 or sdd1). The side effect is that it need to resize later.

    Hope this will help.



    Quote Originally Posted by dalcebolus View Post
    Ok I found this guide:
    https://plus.google.com/109451178006...ts/ZkJteqRsesr

    Swapped kernel and recovery partitions with your stuff. Flashed everything as it is shown there to the minix.

    Then formatted an sdcard to ext4, labelled linuxroot, mounted and copied all from linuxium-ubuntu1304-lubuntu-desktop-rfs.img (found here: http://www.freaktab.com/showthread.p...K802IV-or-T428

    The system boots, 'jumps' to the sdcard, system start goes on, it looks like everything will end well, and then I get a black screen , perhaps when it starts X.

    My TV is 1080p... if that may give you a hint. But most probably it is just a case of me not finding the correct files/guide.

  9. #9
    Junior Member
    Join Date
    Oct 2013
    Location
    Italy
    Posts
    5
    It finally worked. Thanks a lot! Strange though that I had to dd the system partition of Picuntu 4.5 to my SD (ubuntu 13.04 with XFCE I believe...) All the other ubuntu images caused black screens whenever X started.

    Nice that I get to keep Finless 1.6. Now will look into linuxium multiboot. It'll be perfect once I set up my Neo X7 to boot to linux if an SD card or USB storage with a 'linuxroot' label is present, or straight to Android if not, without resorting to the 'reboot to recovery' thingie.
    But again, thanks thanks thanks! I have Picuntu 4.5 with wifi now

    Quote Originally Posted by chenac View Post
    To run Linux, I used "Minix Neo X7 - Finless 1.6" ROM as the base, and flash either normal linux kernel or recovery linux kernel, and prepare a SD card with linux root.

    1: The two kernels are provide for different purpose, that is
    a) normal kernel is used to replace android kernel, so you will boot into linux directly, no android any more.

    b) the recovery kernel is used to be placed on recovery partition, and you will boot into android first. Then use reboot app and choose "reboot to recovery" to boot linux.

    2: To prepare linux root on SD card, just
    sudo dd if=./linuxium-ubuntu1304-lubuntu-desktop-rfs.img of=/dev/sdx1 bs=1M , please make sure the sdx1 is right (like sdb1, sdc1 or sdd1). The side effect is that it need to resize later.

    Hope this will help.

  10. #10
    Senior Member
    Join Date
    Nov 2013
    Location
    europe
    Posts
    121

    flashing firmware using adb via network

    I wonder if there is any way to flash mentioned img files using adb via network (adb connect <device IP>)? It seems like that is the only way to access my minix neo x7 from linux PC since most of the GUI tools mentioned on the web are for windows and my device doesn't appear on the list of the devices produced by 'adb devices' when connected to PC via USB cable.
    I would appreciate particular adb commands what would let me at the end to have dualboot minix neo x7 device with stock ROM and picuntu linux on sdcard.

  11. #11
    Junior Member
    Join Date
    Oct 2013
    Location
    Taiwan
    Posts
    12
    Thread Starter
    Quote Originally Posted by knawnd View Post
    I wonder if there is any way to flash mentioned img files using adb via network (adb connect <device IP>)? It seems like that is the only way to access my minix neo x7 from linux PC since most of the GUI tools mentioned on the web are for windows and my device doesn't appear on the list of the devices produced by 'adb devices' when connected to PC via USB cable.
    I would appreciate particular adb commands what would let me at the end to have dualboot minix neo x7 device with stock ROM and picuntu linux on sdcard.
    In Linux, put the device into bootloader mode( Use a pin to press the button on the device or run reboot bootloader in android ), and use rkflashtool(https://github.com/Galland/rkflashtool_rk3066) to read/ write the flash.

  12. #12
    Senior Member
    Join Date
    Nov 2013
    Location
    europe
    Posts
    121
    Quote Originally Posted by chenac View Post
    In Linux, put the device into bootloader mode( Use a pin to press the button on the device or run reboot bootloader in android ), and use rkflashtool(https://github.com/Galland/rkflashtool_rk3066) to read/ write the flash.
    chenac, thanks a lot for the hint! That way my linux PC is able to communicate with minix neo x7 via rkflashtool!
    Thanks again!

  13. #13
    Senior Member
    Join Date
    Nov 2013
    Location
    europe
    Posts
    121

    step by step guide on flashing linux on minix neo x7?

    could someone, please, write step by step guide on enabling dualboot on minix neo x7? I have Finless ROM 1.6 but not sure now what images to what partitions I need to flash to have both android ROM on NAND and linux kernel on recovery partition and linux rootfs on sdcard.
    On that page there are links to different files and partition images:

    Loader: https://docs.google.com/file/d/0B99O...F9tLVU4NWNrREk
    Parameter: https://docs.google.com/file/d/0B99O...HJvaTF0RTYtNkU
    Kernel: https://docs.google.com/file/d/0B99O...2VWa2huSUpEMnc
    Boot: https://docs.google.com/file/d/0B99O...2ZvSTBoU2VUZmc
    Recovery: https://docs.google.com/file/d/0B99O...zhVeXdoMzJ1VUU
    System: https://docs.google.com/file/d/0B99O...FppcHo4cXJFSEE

    Is it correct that I only have to flash boot (multiboot.img) to /boot partition and linuxium-recovery-fb-fix-4-chromium-drm-hdmi-1080-boot-mk802iv-multiboot.img to /recovery partition? Do I have to flash Parameter and Loader files?
    Last edited by knawnd; 11-16-2013 at 07:28 AM.

  14. #14
    Junior Member
    Join Date
    Nov 2013
    Location
    127.0.0.1
    Posts
    14

    Cool

    Quote Originally Posted by chenac View Post
    To run Linux, I used "Minix Neo X7 - Finless 1.6" ROM as the base, and flash either normal linux kernel or recovery linux kernel, and prepare a SD card with linux root.

    1: The two kernels are provide for different purpose, that is
    a) normal kernel is used to replace android kernel, so you will boot into linux directly, no android any more.

    b) the recovery kernel is used to be placed on recovery partition, and you will boot into android first. Then use reboot app and choose "reboot to recovery" to boot linux.

    2: To prepare linux root on SD card, just
    sudo dd if=./linuxium-ubuntu1304-lubuntu-desktop-rfs.img of=/dev/sdx1 bs=1M , please make sure the sdx1 is right (like sdb1, sdc1 or sdd1). The side effect is that it need to resize later.

    Hope this will help.
    Hello and thanks for the kernel, wifi and ethernet works perfectly!

    I still have a major display problem:
    - if i attach the neo x7 to my 22" 1080p lcd it flashes every 2 seconds (it alternates black screens from few to several seconds long)
    - if i attach the x7 to the 22" with a hdmi to dvi adaptor it works (later on it may freeze but it last several minutes)
    - if i attach the x7 to a 32" 1080p tv it works for some time then the tv see it as disconnected/out of sync and if it works even if the tv correctly read it as a 1980x1024 60hz input i can see only a part of the desktop.

    (i tested everything (also) with the x7 original cable just to be sure)

    I used the finless 1.06 rom,i tryed using your kernel or your recovery, i tried with 1080p,720p no_air,air and stock boot with the same results.

    Just to be sure:
    • i left checked everything (misc,kernel,system,etc.)
    • changed the kernel with your kernel
    • and the recovery with your recovery
    • i tried the stock boot or the 1080p(finless)


    If i use your recovery as kernel sometimes the monitor problem is gone but linux crashes with vga artifacts after few time.


    I tried this kernel (sd card version using the same linuxium)
    http://www.freaktab.com/showthread.p...based-TV-boxes

    and (obviusly) wifi and ethernet don't work but the monitor works perfectly and it's stable.

    Thanks
    Last edited by Plokko; 11-18-2013 at 12:08 AM.

  15. #15
    Junior Member
    Join Date
    Oct 2013
    Location
    Taiwan
    Posts
    12
    Thread Starter
    Hi Plokko:

    In my Minix Neo X7, the display will flash only on the Linux start-up, and then it will become stable.

    I also discover the hdmi-core.c of M
    arvin's rk3188-x7 is different to that of Marvin's picuntu3188.

    So I recompiled a linux kernel with the
    hdmi-core.c of Marvin's rk3188-x7.
    You may like to try:

    Here is the kernel

    https://www.dropbox.com/s/jmu0zqlj8h...t428_1080p.img

    Here is the recovery kernel:
    https://www.dropbox.com/s/yl8c1vs011...8_recovery.img


  16. #16
    Junior Member
    Join Date
    Nov 2013
    Location
    127.0.0.1
    Posts
    14
    Thanks A LOT!
    Anyway maybe after a LOT of flashing i found the real problem:
    i flashed the finless 1.7 with a clean installa and your recovery kernel, and it worked but keep crashing after few minutes.
    I tried android and it had the same lcd flashing problem until... i unplugged the sd card...

    I'll try to get a decent sd-card this time and report my results,i hope it's tha source of all my problems!

    Anyway what android rom do you use as a base for your kernel?
    You just replace recovery with your recovery(multiboot) or kernel with your kernel and leave everythign else intact?

    UPDATE:
    after i left android without the sd for more time i found the problem still persist but does no shows until several minutes (it worked for about 30m or more)
    Last edited by Plokko; 11-18-2013 at 02:41 AM.

  17. #17
    Senior Member
    Join Date
    Nov 2013
    Location
    europe
    Posts
    121
    I would appreciate if someone could clarify some things for me.
    As soon as I have Finless ROM 1.7 installed and working what images should I flash to have dualboot (android + linux) possibility?
    Is it correct that I have to flash that multiboot image, recovery kernel (e.g. provided by chenac in his post with recompiled hdmi-core.c of Marvin's rk3188-x7) and then place linux root fs image on sdcard labeled as "linuxroot"?
    Is anything I have to do with parameter and bootloader (RKBootloader v2.03) files which mentioned in Ian Morrison's guide?

  18. #18
    Junior Member
    Join Date
    Nov 2013
    Location
    127.0.0.1
    Posts
    14

    Lightbulb

    Quote Originally Posted by knawnd View Post
    I would appreciate if someone could clarify some things for me.
    As soon as I have Finless ROM 1.7 installed and working what images should I flash to have dualboot (android + linux) possibility?
    Is it correct that I have to flash that multiboot image, recovery kernel (e.g. provided by chenac in his post with recompiled hdmi-core.c of Marvin's rk3188-x7) and then place linux root fs image on sdcard labeled as "linuxroot"?
    Is anything I have to do with parameter and bootloader (RKBootloader v2.03) files which mentioned in Ian Morrison's guide?
    i can assure you can have Finless rom 1.7 + Linuxium (it starts instead of the recovery) because i tested myself, you must use ONLY the recovery kernel.
    I still have to sort out some problems but it may only be my unit.

    A guide should be made to clarify the procedure:


    1. download and extract the modded recovery kernel
    2. download and extract Finless rom 1.7
    3. open finless flashing tool (provided with the rom) and replace "recovery" with the modded recovery kernel, leave everything the same
    4. put the device in recovery and make a clean install (erease NAND + flash rom)
    5. Prepare the SD card with a linux image (under windows just use roadkill's diskimage,it's easy to use)
    6. give android some time for the first boot and reboot in recovery (with the linux SD of course) to start linux.

  19. #19
    Senior Member
    Join Date
    Nov 2013
    Location
    europe
    Posts
    121
    Plokko, thanks a lot for taking time to write the explanation!
    I successfully managed to run lubuntu-13.04!(now upgrading to 13.10).
    I performed the following steps using linux PC (I already have installed Finless ROM 1.7 my minix neo x7).
    1) flash recovery kernel (e.g. that one) into recovery partition using rkflashkit tool (it is a flashing tool with GUI for linux);
    2) reboot the minix device into android;
    3) using linux PC create a partition on sdcard and write into it one of the linuxium images (see links in the first post of that thread):
    Code:
    $ dd if=/tmp/linuxium-ubuntu1304-lubuntu-desktop-rfs.img of=/dev/sdbX bs=1M
    where X is the number of your partition on sdcard.
    4) Run gparted tool to resize the partition to desirable size (in gparted menu select your sdcard, then choose "Partition" -> "Check").
    5) Insert sdcard with linux image into minix and reboot the device into recovery mode.

    I wonder if there is a way to overclock linux kernel similar to those ones supplied within Finless ROM package?
    It would be useful for me to be able to mount nfs share as well as run NFS server (I guess both possibilities need to be enabled in kernel). Right now I get the following error when trying to mount:
    Code:
    $ mount -t nfs -o rw,hard,intr,local_lock=all <NFS server IP address>:<nfs share path> <local mount-point>
    mount: unknown filesystem type 'nfs'
    and indeed nfs is not listed in /proc/filesystems file.

    I am also looking for a way to enable OS selection during boot.
    I would appreciate if someone could help me with one of the topic raised.

  20. #20
    Junior Member
    Join Date
    Nov 2013
    Location
    127.0.0.1
    Posts
    14
    So you don't get any error like mine?(flashing black screen,gpu artifacts)
    no reboots or errors?!?

    I'm starting to think it's a problem of my unit not of the rom (in android even with stock rom at 1080p i have the same problems,switching to 720p fixes the issue; using a long cable instead of the provided short one give a black screen at 1080p but works at 720p; strange issues)

Page 1 of 6 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •