If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Announcement
Collapse
No announcement yet.
Announcement
Collapse
No announcement yet.
Running Android or Linux from an SD card on a RK3288 device - An easy way to dual boot
After some tries with different android roms (even the cs918ii stock Rom) which all could not be used with the android sdcard script, I've found a prebuild ca918ii kernel (among many others) in another forum http://www.arctablet.com/blog/forum/...140731/page-2/ that worked for the Linux script.
The kernel loads,I can see penguins, and that's all.
Is there any documentation about how those scripts can be used, and what to do if they don't work?
Somehow all that was much more simple on my wandboard ! :-)
Regards, Martin
I had a look at the 'stock' firmware referenced here http://www.geekbuying.com/item/CS918...ue-332176.html which looks okay so perhaps something is going wrong during the execution of the 'create-android-sdcard' script.
As all messages, including error messages, are suppressed during execution, try running the following to create a verbose version of the script:
cp create-android-sdcard create-android-sdcard-debug
sed -i 's?> /dev/null 2>&1??' create-android-sdcard-debug
sed -i 's?2> /dev/null??' create-android-sdcard-debug
.
.
.
./create-android-sdcard-debug: Creating 'user' partition as '/dev/sdb5' using rest of space on '/dev/sdb' ... Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
done.
./create-android-sdcard-debug: Making 'vfat' file system for 'user' partition on '/dev/sdb5' ... mkfs.fat 3.0.26 (2014-03-07)
/dev/sdb5: No such file or directory
done.
./create-android-sdcard-debug: Updating Android boot source ... egrep: res: Is a directory
egrep: sbin: Is a directory
egrep: res: Is a directory
egrep: sbin: Is a directory
done.
./create-android-sdcard-debug: Rebuilding Android boot image ... 4038 blocks
.
.
.
./create-android-sdcard-debug: Creating 'user' partition as '/dev/sdb5' using rest of space on '/dev/sdb' ... Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
done.
./create-android-sdcard-debug: Making 'vfat' file system for 'user' partition on '/dev/sdb5' ... mkfs.fat 3.0.26 (2014-03-07)
/dev/sdb5: No such file or directory
done.
./create-android-sdcard-debug: Updating Android boot source ... egrep: res: Is a directory
egrep: sbin: Is a directory
egrep: res: Is a directory
egrep: sbin: Is a directory
done.
./create-android-sdcard-debug: Rebuilding Android boot image ... 4038 blocks
maybe ill give it a try on another linux Distro. (Currently running Ubuntu 14.04 inside Vmware Player)
Martin
Hi there,
I tried to use the sdcard image I also (I did use Windows to change uboot to 2.17, which seems to work, because android still booting fine...)...but the sd card did start (Image with BIG/HUGE MAN on the screen is visible which is not wen i boot without dcard...) but after starting there is no more progress...
Maybe an other image could be used ?
Any help appreciated :-) I´d maybe want to exchange my banana pi based "server" with this low power machine...based on ubuntu and gb network...could be an option if it would work...
.
.
.
./create-android-sdcard-debug: Creating 'user' partition as '/dev/sdb5' using rest of space on '/dev/sdb' ... Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
done.
./create-android-sdcard-debug: Making 'vfat' file system for 'user' partition on '/dev/sdb5' ... mkfs.fat 3.0.26 (2014-03-07)
/dev/sdb5: No such file or directory
done.
./create-android-sdcard-debug: Updating Android boot source ... egrep: res: Is a directory
egrep: sbin: Is a directory
egrep: res: Is a directory
egrep: sbin: Is a directory
done.
./create-android-sdcard-debug: Rebuilding Android boot image ... 4038 blocks
Hi there,
I tried to use the sdcard image I also (I did use Windows to change uboot to 2.17, which seems to work, because android still booting fine...)...but the sd card did start (Image with BIG/HUGE MAN on the screen is visible which is not wen i boot without dcard...) but after starting there is no more progress...
Maybe an other image could be used ?
Any help appreciated :-) I´d maybe want to exchange my banana pi based "server" with this low power machine...based on ubuntu and gb network...could be an option if it would work...
kind regards
arel
So you are using the 'create-linux-sdcard' script?
As you get the image on the screen it shows that your device is booting correctly but if nothing further happens then it most likely indicates that similarly there is a problem in finding the root file system.
Can you also make sure 'gdisk' is installed (simply enter 'apt-get install gdisk') in a terminal window and if it wasn't, can you regenerate the SD card using the script and try again?
Ive checked if gdisk is installed, and is getting used for the sdcard created is a GPT disk. dosfstools are also installed.
The script somehow fails before or while trying to format /dev/sdb5 with mkfs.vfat . sdb5 is not formatted after the script exits.
When i do "mkfs.vfat /dev/sdb5" manually afterwards it works fine and the partition shows up.
Ive checked if gdisk is installed, and is getting used for the sdcard created is a GPT disk. dosfstools are also installed.
The script somehow fails before or while trying to format /dev/sdb5 with mkfs.vfat . sdb5 is not formatted after the script exits.
When i do "mkfs.vfat /dev/sdb5" manually afterwards it works fine and the partition shows up.
Martin
Strange. Unless running in a VM is causing some latency? Perhaps try adding in 'sync; sync; sleep 10' immediately before the 'mkfs.vfat' command in the script just for good measure and see if this helps.
Slowly I am beginning to give it up!
Until Now I've tried the android script with ubuntu 14.04 vmware, debian 7vmware and ubuntu 12.04 regular installation and no matter which android image I try it always fails after partitioning the sdcard.
@linuxium : what Linux distro do you use that makes the script work?
Slowly I am beginning to give it up!
Until Now I've tried the android script with ubuntu 14.04 vmware, debian 7vmware and ubuntu 12.04 regular installation and no matter which android image I try it always fails after partitioning the sdcard.
@linuxium : what Linux distro do you use that makes the script work?
Thanks in advance , Martin
I use native Ubuntu 12.04 but there is nothing in the script to make it release dependent.
So assuming the correct device for the SD card is selected (I include this just for the sake of completeness) then perhaps the focus should be on the SD card itself. Some ideas include:
1. Have you tried a different SD card?
2. Is the SD card at least 8GB or larger?
3. Have you tried creating a new partition table on the SD card before using it (e.g. 'dd if=/dev/zero of=/dev/{SD card device} 1 bs=512 count=1' and then using gparted/fdisk etc to create a new empty DOS partition table)?
I use native Ubuntu 12.04 but there is nothing in the script to make it release dependent.
So assuming the correct device for the SD card is selected (I include this just for the sake of completeness) then perhaps the focus should be on the SD card itself. Some ideas include:
1. Have you tried a different SD card?
2. Is the SD card at least 8GB or larger?
3. Have you tried creating a new partition table on the SD card before using it (e.g. 'dd if=/dev/zero of=/dev/{SD card device} 1 bs=512 count=1' and then using gparted/fdisk etc to create a new empty DOS partition table)?
FOUND THE PROBLEM!!
After searching (almost desperatly ) for days i just found out what the Problem was! If you are running a 64 Bit Ubuntu you have to install "ia32-libs" !!
now everything works as expected. But that doesnt change the fact that this script just wont run with Debian Wheezy...
*****@*****-desktop:~/linuxium > lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931,5G 0 disk
├─sda1 8:1 0 807,3G 0 part /media/******/*****
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 39,6G 0 part
├─sda6 8:6 0 83G 0 part /
└─sda7 8:7 0 1,6G 0 part
sdb 8:16 1 15,4G 0 disk
└─sdb1 8:17 1 15,4G 0 part /media/*****/d05150a9-3070-4405-ac2b-921165d45cf5
sr0 11:0 1 1024M 0 rom
*****@*****-desktop:~/linuxium > ./create-linux-sdcard
./create-linux-sdcard: Is your SD card loaded as '/dev/sdc' (y/n)? n
./create-linux-sdcard: Do you want to use a different device? y
./create-linux-sdcard: Enter new device name? /dev/sdb1
./create-linux-sdcard: Is your SD card loaded as '/dev/sdb1' (y/n)? y
./create-linux-sdcard: Unmounting partitions on '/dev/sdb1' ... done.
./create-linux-sdcard: Formatting SD card '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing bootloader 'sdboot_rk3288.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Updating partition table on '/dev/sdb1' ... done.
./create-linux-sdcard: Calculating partition size for '/dev/sdb1' ... done.
./create-linux-sdcard: Creating 'linux' partition as '/dev/sdb11' on /dev/sdb1 ...done.
./create-linux-sdcard: Making 'ext4' file system for 'linux' partition on '/dev/sdb11' ... done.
./create-linux-sdcard: Creating 'parameter-linux.img' from 'parameter-linux' ... done.
./create-linux-sdcard: Flashing parameter 'parameter-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing boot 'boot-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing kernel 'kernel-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing resource 'resource-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing Linux RFS 'linux-rfs.img' to '/dev/sdb11' ... done.
./create-linux-sdcard: Flushing buffers for '/dev/sdb1' ... done.
./create-linux-sdcard: Linux SD card created on '/dev/sdb1'.
Nothing gets written to SD-Card
Tried to format SD-Card as fat16/32/ext4/unallocated , nothing works.
Using Kubuntu 14.10 64bit and ia32-libs is alread installed.
Please help
Also how would you modify it to run from internal EMMC storage and not SD-Card like Firefly Ubuntu 14.04?
Want to use Lubuntu 14.10
*****@*****-desktop:~/linuxium > lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931,5G 0 disk
├─sda1 8:1 0 807,3G 0 part /media/******/*****
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 39,6G 0 part
├─sda6 8:6 0 83G 0 part /
└─sda7 8:7 0 1,6G 0 part
sdb 8:16 1 15,4G 0 disk
└─sdb1 8:17 1 15,4G 0 part /media/*****/d05150a9-3070-4405-ac2b-921165d45cf5
sr0 11:0 1 1024M 0 rom
*****@*****-desktop:~/linuxium > ./create-linux-sdcard
./create-linux-sdcard: Is your SD card loaded as '/dev/sdc' (y/n)? n
./create-linux-sdcard: Do you want to use a different device? y
./create-linux-sdcard: Enter new device name? /dev/sdb1
./create-linux-sdcard: Is your SD card loaded as '/dev/sdb1' (y/n)? y
./create-linux-sdcard: Unmounting partitions on '/dev/sdb1' ... done.
./create-linux-sdcard: Formatting SD card '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing bootloader 'sdboot_rk3288.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Updating partition table on '/dev/sdb1' ... done.
./create-linux-sdcard: Calculating partition size for '/dev/sdb1' ... done.
./create-linux-sdcard: Creating 'linux' partition as '/dev/sdb11' on /dev/sdb1 ...done.
./create-linux-sdcard: Making 'ext4' file system for 'linux' partition on '/dev/sdb11' ... done.
./create-linux-sdcard: Creating 'parameter-linux.img' from 'parameter-linux' ... done.
./create-linux-sdcard: Flashing parameter 'parameter-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing boot 'boot-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing kernel 'kernel-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing resource 'resource-linux.img' to '/dev/sdb1' ... done.
./create-linux-sdcard: Flashing Linux RFS 'linux-rfs.img' to '/dev/sdb11' ... done.
./create-linux-sdcard: Flushing buffers for '/dev/sdb1' ... done.
./create-linux-sdcard: Linux SD card created on '/dev/sdb1'.
Nothing gets written to SD-Card
Tried to format SD-Card as fat16/32/ext4/unallocated , nothing works.
Using Kubuntu 14.10 64bit and ia32-libs is alread installed.
Please help
Also how would you modify it to run from internal EMMC storage and not SD-Card like Firefly Ubuntu 14.04?
Want to use Lubuntu 14.10
Did you check whether 'gdisk' was installed? If not enter 'apt-get install gdisk' in a terminal window and try again.
If it still fails, then enter the following in a terminal window:
cp create-linux-sdcard create-linux-sdcard-debug
sed -i 's?2> /dev/null??' create-linux-sdcard-debug
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment