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
Collapse
This is a sticky topic.
X
X
-
Well I got to the bottom of the problem the firefly image does work. The loopback unmount of system image on some conditions is not working. Im not sure what the conditions are when it doesnt unmount for . I looked through the logs and seen this
+ FLASH_SYSTEM_TO_SDCARD
+ echo -n './create-android-sdcard: Flashing system '\''system.img'\'' to '\''/dev/sdd4'\'' ... '
./create-android-sdcard: Flashing system 'system.img' to '/dev/sdd4' ... + cd /home/grant/Desktop/r28/create-sdcard/Android/.
+ dd if=system.img of=/dev/sdd4 conv=sync,fsync
795080+0 records in
795080+0 records out
407080960 bytes (407 MB) copied, 2.73035 s, 149 MB/s <------
I seen i had a few loopbacks mounted it doesnt do it every time though so i changed the code in the script a little
else
sed -i "s?\(dev_mount.*flash.*/mnt/sdcard.*auto\)?# \1?" system/etc/vold.fstab
#sed -i "s?\(dev_mount.*sdcard.*/mnt/external_sd.*auto\)?# \1?" system/etc/vold.fstab
sync
sync
umount -f system #i changed this it was originally umount system
fi
rm -rf system
e2fsck -fp system.img
./create-android-sdcard: Flashing system 'system.img' to '/dev/sdd4' ... + cd /home/grant/Desktop/r28/create-sdcard/Android/.
+ dd if=system.img of=/dev/sdd4 conv=sync,fsync
795080+0 records in
795080+0 records out
407080960 bytes (407 MB) copied, 124.27 s, 3.3 MB/s <------------
+ e2fsck -fp /dev/sdd4
system: 1746/24896 files (0.0% non-contiguous), 97899/99385 blocks
+ resize2fs /dev/sdd4
resize2fs 1.42.9 (4-Feb-2014)
Resizing the filesystem on /dev/sdd4 to 196608 (4k) blocks.
The filesystem on /dev/sdd4 is now 196608 blocks long.
sorry about all the posts i should have picked that up earlier it works every time for me now. Im not sure why it doesnt unmount properly sometimes maybe its something to do with the auto mount system in mint but your scripts work just fine great work mr linuxiumLast edited by grant2258; 02 January 2015, 21:27.
Comment
-
Hello,
I've attempted to use the script to create an android on my sdcard so that i can boot my r28 into the stock OS since its somewhat bricked.
I installed VirtualBox and Mint linux distro.
After running the script, I receive this message. Any help would be greatly appreciated. I am running the 32bit version of Linux. However i am running it in Live CD mode. Does that matter?
Tronsmart Draco Meta - Finless ROM
Samsung Galaxy Note 3 - KnoxRaid ROM
Samsung Galaxy Note 10.1 2014 Edition - xKat v3.2.1 ROM
Tronsmart R28 Orion - Stock (not working)
Comment
-
Originally posted by grant2258 View PostYou need to install gdisk and run the script as root. Also goto the tools directory and try run the binaries see if the show any runtime problems ect
When i went to the tools and tried to run rkunpack using ./rkunpack, i received cannot execute binary file: Exec format error.
I am not too familiar with linux, its been years since i messed around with it so I am not sure if I'm doing the commands correctly or not...Tronsmart Draco Meta - Finless ROM
Samsung Galaxy Note 3 - KnoxRaid ROM
Samsung Galaxy Note 10.1 2014 Edition - xKat v3.2.1 ROM
Tronsmart R28 Orion - Stock (not working)
Comment
-
Originally posted by s3ntrax View PostOk so i installed Gdisk and ran the script as root. I keep getting the same unpacking error message as before.
When i went to the tools and tried to run rkunpack using ./rkunpack, i received cannot execute binary file: Exec format error.
I am not too familiar with linux, its been years since i messed around with it so I am not sure if I'm doing the commands correctly or not...
in the terminal
just type
gcc rkunpack.c -o rkunpack
gcc rkcrc.c -o rkcrc
and youll have the 32 bit versions you need.
linuxium posted the link before on this thread where to get mkkrnlimg if you have problems compiling them two programs ill do it for you.
Update: I checked all the binaries they are all 32 bit accept the rkunpack and rkcrc i complied 32 bit versions for you and anyone that needs them grab them here < 32bit.zip > and copy them to the Tools directoryLast edited by grant2258; 04 January 2015, 23:34.
Comment
-
Originally posted by grant2258 View Postyou are doing it right the binaries you have are 64 bit though https://github.com/naobsd/rkutils if you want to compile the 32 bit ones. Youll have to install linux properly though and at the very least youll need to install build-essential type apt-get install build-essential to get it.
in the terminal
just type
gcc rkunpack.c -o rkunpack
gcc rkcrc.c -o rkcrc
and youll have the 32 bit versions you need.
linuxium posted the link before on this thread where to get mkkrnlimg if you have problems compiling them two programs ill do it for youTronsmart Draco Meta - Finless ROM
Samsung Galaxy Note 3 - KnoxRaid ROM
Samsung Galaxy Note 10.1 2014 Edition - xKat v3.2.1 ROM
Tronsmart R28 Orion - Stock (not working)
Comment
-
it worked!!!
SUCCESS!! IT WORKED!
Had some issues with running the binaries. Later i realized that they did not have permission to be run. After that everything went well. It took a bit of time and when i booted my box it was stock on the Tronsmart logo and wouldn't go anywhere.
I then flashed Wasser's firwmare onto the SD and booted it on the box and it got stuck on the logo. It took forever but it went to the launcher. After that i realized that my SD card is probably way to slow. After taking a look at it its only class 4!!!. Took out my 32GB Class 10 SD Card from my tablet and now I'm about to flash the stock firmware again and see if it was just the card.
Thanks for all your help grant2258!!
Btw, I used the 64bit binaries since i installed Linux Mint 64bit.Tronsmart Draco Meta - Finless ROM
Samsung Galaxy Note 3 - KnoxRaid ROM
Samsung Galaxy Note 10.1 2014 Edition - xKat v3.2.1 ROM
Tronsmart R28 Orion - Stock (not working)
Comment
-
Originally posted by s3ntrax View PostSUCCESS!! IT WORKED!
Had some issues with running the binaries. Later i realized that they did not have permission to be run. After that everything went well. It took a bit of time and when i booted my box it was stock on the Tronsmart logo and wouldn't go anywhere.
I then flashed Wasser's firwmare onto the SD and booted it on the box and it got stuck on the logo. It took forever but it went to the launcher. After that i realized that my SD card is probably way to slow. After taking a look at it its only class 4!!!. Took out my 32GB Class 10 SD Card from my tablet and now I'm about to flash the stock firmware again and see if it was just the card.
Thanks for all your help grant2258!!
Btw, I used the 64bit binaries since i installed Linux Mint 64bit.
Comment
-
Originally posted by grant2258 View Postglad you got it sorted mate the real person to thank is linuxium for doing all the hard work!Tronsmart Draco Meta - Finless ROM
Samsung Galaxy Note 3 - KnoxRaid ROM
Samsung Galaxy Note 10.1 2014 Edition - xKat v3.2.1 ROM
Tronsmart R28 Orion - Stock (not working)
Comment
What's Going On
Collapse
There are currently 3242 users online. 0 members and 3242 guests.
Most users ever online was 37,478 at 04:14 on 26 June 2024.
Comment