Posts: 147
Threads: 24
Likes Received: 4 in 4 posts
Likes Given: 34
Joined: Jun 2018
(03-09-2019, 10:59 AM)lobo Wrote: (03-09-2019, 09:49 AM)Leskriim Wrote: Is it mandatory to compile the source code for root?
No it is not needed. Please read carefully the first post.
If we follow the second method, simply connect the micro sd with android and enter the following commands? because I did it and it did not work, but I think virtualbox did not recognize my key (although I added it in the VB configuration)
French
•
Posts: 220
Threads: 4
Likes Received: 25 in 23 posts
Likes Given: 3
Joined: Sep 2017
03-12-2019, 06:30 AM
(This post was last modified: 03-12-2019, 06:33 AM by lobo. Edited 1 time in total.)
Hell Leskrim,
you can create a link to your sdcard device and have access to it in VB.
Here you can find how to do this on a windows host:
https://scribles.net/accessing-sd-card-f...dows-host/
Then you should be able to write with dd to it, here I assume the sdcard will be /dev/sdb in Ubuntu:
Code:
sudo dd of=/dev/sdb if=newboot.img bs=512 seek=122880
•
Posts: 147
Threads: 24
Likes Received: 4 in 4 posts
Likes Given: 34
Joined: Jun 2018
(03-12-2019, 06:30 AM)lobo Wrote: Hell Leskrim,
you can create a link to your sdcard device and have access to it in VB.
Here you can find how to do this on a windows host:
https://scribles.net/accessing-sd-card-f...dows-host/
Then you should be able to write with dd to it, here I assume the sdcard will be /dev/sdb in Ubuntu:
Code:
sudo dd of=/dev/sdb if=newboot.img bs=512 seek=122880
What is a DD?
French
•
Posts: 220
Threads: 4
Likes Received: 25 in 23 posts
Likes Given: 3
Joined: Sep 2017
•
Posts: 147
Threads: 24
Likes Received: 4 in 4 posts
Likes Given: 34
Joined: Jun 2018
I put Ubuntu on my tb, then I flashed Android 7 on a micro sd card via win32diskimager (Windows), then I executed the command (short way) then I have an error message, can be I'm doing badly but I'm not comfortable with Linux.
Code:
tinker@ELAR-Systems:~$ sudo path/to/rkflashtool w boot < newboot.img
bash: newboot.img: No such file or directory
tinker@ELAR-Systems:~$ sudo path/to/rkflashtool b
sudo: path/to/rkflashtool: command not found
French
•
Posts: 220
Threads: 4
Likes Received: 25 in 23 posts
Likes Given: 3
Joined: Sep 2017
Dear Leskriim,
/path/to is only a placeholder. You need to replace it with real path to your rkflashtool.
And newboot.img also is not found, you need to add the path to it, or change with command cd to the path where you have stored newboot.img, or copy newboot.img to your home folder.
•
Posts: 147
Threads: 24
Likes Received: 4 in 4 posts
Likes Given: 34
Joined: Jun 2018
(06-23-2019, 04:29 PM)lobo Wrote: Dear Leskriim,
/path/to is only a placeholder. You need to replace it with real path to your rkflashtool.
And newboot.img also is not found, you need to add the path to it, or change with command cd to the path where you have stored newboot.img, or copy newboot.img to your home folder.
ok and i need to create a second partition in the sd card to flash newboot?
French
•
Posts: 220
Threads: 4
Likes Received: 25 in 23 posts
Likes Given: 3
Joined: Sep 2017
No, sorry I don't understand well your setup. Remember that rkflashtool is a tool that flash images to the TB via the otg connector, when the TB is in bootloader mode.
When you want to write the newboot.img dirct to a sdcard, you normally use the linux tool dd.
https://tinkerboarding.co.uk/forum/threa...ml#pid8573
Look at the bottom of the first post.
If you use the TB to flash to the Android sdcard, you need to find out the device name of the sdcard and replace the /dev/sdx in this command:
Code:
sudo dd of=/dev/sdx if=newboot.img bs=512 seek=122880
/dev/sdx is a placeholder.
But be careful, if you put the wrong device there, you can destroy your Ubuntu!
Try with the command df to get a list of mounted devices. You can show the output here to get assist.
Another way would be the command dmesg right after you put in the sdcard, to see what device get mounted.
•
Posts: 147
Threads: 24
Likes Received: 4 in 4 posts
Likes Given: 34
Joined: Jun 2018
(06-23-2019, 05:47 PM)lobo Wrote: No, sorry I don't understand well your setup. Remember that rkflashtool is a tool that flash images to the TB via the otg connector, when the TB is in bootloader mode.
When you want to write the newboot.img dirct to a sdcard, you normally use the linux tool dd.
https://tinkerboarding.co.uk/forum/threa...ml#pid8573
Look at the bottom of the first post.
If you use the TB to flash to the Android sdcard, you need to find out the device name of the sdcard and replace the /dev/sdx in this command:
Code:
sudo dd of=/dev/sdx if=newboot.img bs=512 seek=122880
/dev/sdx is a placeholder.
But be careful, if you put the wrong device there, you can destroy your Ubuntu!
Try with the command df to get a list of mounted devices. You can show the output here to get assist.
Another way would be the command dmesg right after you put in the sdcard, to see what device get mounted.
I can not manage everything and very complicated for me, you can root my image?
i run sudo apt-get install rkflashtool so i even know psa how it works and i do not even know where it is, then i wanted to copy newboot.img to dev / snd to get my location but i do not have it Authorized access. yet I try to follow your advice carefully.
French
•
Posts: 147
Threads: 24
Likes Received: 4 in 4 posts
Likes Given: 34
Joined: Jun 2018
•