Forum switched to read-only as of 2020/06/01


Latest product reviews
ARCHOS 50 Diamond
ARCHOS GamePad2
ARCHOS
Smartphones
ARCHOS
TV Connect
ARCHOS 101 XS

A A A
Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?

ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288

 Please donate to support OMA and CrewRKTablets firmware work, thank you !

sp_Feed sp_TopicIcon
Arnova 10 G2 Custom rom development with Linux
Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
16
2012/01/18 - 21:15
sp_Permalink sp_Print sp_EditHistory

Cool OK so thats the missing piece.  Where do I get the new rkcrc.c from that supports the -k paramegter?  I do not see it on your Wiki?

 

Bob

Avatar
ttz642t

Firmware Guru
Forum Posts: 53
Member Since:
2011/11/19
sp_UserOfflineSmall Offline
17
2012/01/18 - 22:15
sp_Permalink sp_Print

finless said

Cool OK so thats the missing piece.  Where do I get the new rkcrc.c from that supports the -k paramegter?  I do not see it on your Wiki?

I've added a link to my wiki page:

http://www.arctablet.com/wiki/index.php/Rktools

Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
18
2012/01/24 - 15:48
sp_Permalink sp_Print

OK I went to your link and I am not stupid on how to read and follow... I am not seeing anything that takes me to the updated rkcrc.c link?

Sorry for being an idiot but I am not finding it 🙁

 

Bob

Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
19
2012/01/24 - 21:29
sp_Permalink sp_Print

Sheesh.... I am a linux idiot.... I got it... Never mind....  Windows all these years turned me into an idiot 😉

 

Bob


Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
20
2012/01/25 - 01:01
sp_Permalink sp_Print sp_EditHistory

OK well maybe I am not an idiot.  The rkcrc.c and rkcrc.h files you have on your WiKi are the same OLD ones I have already.  Once compiled, rkcrc comes back with -k option as not supported.

So unless I find the source to make rkcrc allowing the -k option, your scripts are worthless!  THAT is the KEY component to making a proper boot.img using your Perl scripts... They are useless with out that key component!

No offense, but since it seems you have not logged in for a while now... I guess having a Wiki and scripts is completely worthless when it doesnt work! I know you do not like forums but the stuff from your WiKi page does not work from the information you provide.

Maybe I have missed something but after 2 hrs of fooling with your WiKi page, scripts, and not having a rkcrc that supports the -k option, I am DONE!

I personally would never put something out that someone cannot go to and get all that is needed to complete the task.  Sorry but again after 2 hrs of screwing with your Wiki, I have yet to find the proper way.

I will go do this myself and figure it out on my own.  Sorry but I am highly dissapointed in your Wiki.....

Again maybe I am an IDIOT but honestly I could not figure it out and find on your Wiki a rkcrc.c and rkcrc.h that compiled and made a rkcrc that supported the - k option'

 

Bob

Avatar
ttz642t

Firmware Guru
Forum Posts: 53
Member Since:
2011/11/19
sp_UserOfflineSmall Offline
21
2012/01/25 - 01:54
sp_Permalink sp_Print

finless said

OK well maybe I am not an idiot.  The rkcrc.c and rkcrc.h files you have on your WiKi are the same OLD ones I have already.  Once compiled, rkcrc comes back with -k option as not supported.

So unless I find the source to make rkcrc allowing the -k option, your scripts are worthless!  THAT is the KEY component to making a proper boot.img using your Perl scripts... They are useless with out that key component!

BOB,

I don't understand, they work perfectly for me.

The 'C' code is from: https://github.com/naobsd/rkutils !

 

Here, I download the rkcrc.h & rkcrc.c compile them and use them to generate a KRNL & PARM file(s), I created a test file with text "Just for BOB." and ran the rkcrc with -p & -k, here's my EXACT typing and response:

$ cd /tmp
stevep@i5:~/tmp$ wget https://github.com/naobsd/rkutils/blob/master/rkcrc.c
--2012-01-25 00:42:48-- https://github.com/naobsd/rkutils/blob/master/rkcrc.c
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 48994 (48K) [text/html]
Saving to: `rkcrc.c.1'

100%[=============================================================================================================================>] 48,994 --.-K/s in 0.1s

2012-01-25 00:42:48 (467 KB/s) - `rkcrc.c.1' saved [48994/48994]

stevep@i5:~/tmp$ wget https://github.com/naobsd/rkutils/blob/master/rkcrc.h
--2012-01-25 00:43:00-- https://github.com/naobsd/rkutils/blob/master/rkcrc.h
Resolving github.com... 207.97.227.239
Connecting to github.com|207.97.227.239|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 50191 (49K) [text/html]
Saving to: `rkcrc.h.1'

100%[=============================================================================================================================>] 50,191 --.-K/s in 0.1s

2012-01-25 00:43:00 (436 KB/s) - `rkcrc.h.1' saved [50191/50191]

stevep@i5:~/tmp$ gcc -o rkcrc rkcrc.c
stevep@i5:~/tmp$ ./rkcrc -h
./rkcrc: invalid option -- 'h'
usage: ./rkcrc [-k|-p] infile outfile
stevep@i5:~/tmp$ cat - > test Just for BOB.

stevep@i5:~/tmp$ ./rkcrc -k test test.k
stevep@i5:~/tmp$ ./rkcrc -p test test.p
stevep@i5:~/tmp$ hexdump -C test.p
00000000 50 41 52 4d 0e 00 00 00 4a 75 73 74 20 66 6f 72 |PARM....Just for|
00000010 20 42 4f 42 2e 0a 8c 7a 29 ab | BOB...z).|
0000001a
stevep@i5:~/tmp$ hexdump -C test.k
00000000 4b 52 4e 4c 0e 00 00 00 4a 75 73 74 20 66 6f 72 |KRNL....Just for|
00000010 20 42 4f 42 2e 0a 8c 7a 29 ab | BOB...z).|
0000001a
stevep@i5:~/tmp$

Works PERFECT !
 

Avatar
admin

admin
Forum Posts: 5878
Member Since:
2010/09/11
sp_UserOfflineSmall Offline

Thanks Received: 3169
22
2012/01/25 - 01:55
sp_Permalink sp_Print

finless, keep it cool. Wink

 

I understand you are disapointed, but the project of documenting the custom firmware building is just starting.  It's up to everybody to try, verify and complete current procedures. The forum is good for user interactions, WIKI for having a reference that everybody can check and modify if needed.

Every forum user has write access to the WIKI and can make changes, raise problems on  errors, incompleteness...

I am doing my best to provide the tools for everybody to help making these tablets better; up to everybody to contribute at his own level.

If you like our web site, applications and firmwares, feel free to support our site. Donations are used to pay the bills for our server hosting costs, development tools and purchase new tablets to support.

Avatar
ttz642t

Firmware Guru
Forum Posts: 53
Member Since:
2011/11/19
sp_UserOfflineSmall Offline
23
2012/01/25 - 02:01
sp_Permalink sp_Print

finless said

No offense, but since it seems you have not logged in for a while now... I guess having a Wiki and scripts is completely worthless when it doesnt work! I know you do not like forums but the stuff from your WiKi page does not work from the information you provide.
Bob

Bob,

If there's an error in what I've put on the wiki let me know and I will correct it, or you can.

 

I don't get the time I'd like to do what I find interesting and fun, and in 5 hrs and 45 minutes I get up for work 🙂 18hr days are about the norm 🙂

 

I've started on setting up an environment for doing CyanogenMOD 7 development, given time...

--

Steve

Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
24
2012/01/25 - 02:06
sp_Permalink sp_Print

ttz642t, Yes I used https://github.com/naobsd/rkutils and the files are the SAME OLD FILES of rkcrc I already have!  I even did a file compare on them.  Those DO NOT support -k option.

Please tell me what I am doing wrong as maybe I am an idiot here.  But the bottom line is no matter what I do with that link, I get the same rkcrc.c I have today.

 

Bob

Avatar
ttz642t

Firmware Guru
Forum Posts: 53
Member Since:
2011/11/19
sp_UserOfflineSmall Offline
25
2012/01/25 - 02:10
sp_Permalink sp_Print

admin said

finless, keep it cool. Wink

I understand you are disapointed, but the project of documenting the custom firmware building is just starting.  It's up to everybody to try, verify and complete current procedures. The forum is good for user interactions, WIKI for having a reference that everybody can check and modify if needed.

Every forum user has write access to the WIKI and can make changes, raise problems on  errors, incompleteness...

I am doing my best to provide the tools for everybody to help making these tablets better; up to everybody to contribute at his own level.

Admin,

And a ludite I know 🙂 , and Windowz advocate has confirmed my Linux rom update works (isn't that right PK ?).

 

Bob, PM me and we can IM and resolve the issues. Allow a few days for replies I don't always manage to read the forums.

Avatar
ttz642t

Firmware Guru
Forum Posts: 53
Member Since:
2011/11/19
sp_UserOfflineSmall Offline
26
2012/01/25 - 02:12
sp_Permalink sp_Print

finless said

ttz642t, Yes I used https://github.com/naobsd/rkutils and the files are the SAME OLD FILES of rkcrc I already have!  I even did a file compare on them.  Those DO NOT support -k option.

Please tell me what I am doing wrong as maybe I am an idiot here.  But the bottom line is no matter what I do with that link, I get the same rkcrc.c I have today.

 

Bob

Bob,

After compiling typc rkcrc with no parameters, what does it reply with ?

Avatar
admin

admin
Forum Posts: 5878
Member Since:
2010/09/11
sp_UserOfflineSmall Offline

Thanks Received: 3169
27
2012/01/25 - 02:14
sp_Permalink sp_Print

finless said

ttz642t, Yes I used https://github.com/naobsd/rkutils and the files are the SAME OLD FILES of rkcrc I already have!  I even did a file compare on them.  Those DO NOT support -k option.

Please tell me what I am doing wrong as maybe I am an idiot here.  But the bottom line is no matter what I do with that link, I get the same rkcrc.c I have today.

 

Bob

finless, in an earlier post (#5 from this topic) I built rkutils binaries for Linux.
I have just checked with a test file, they do work as Steve said.

http://www.arctablet.com/assets/tools/Firmware/Rockchip_CPU_based/rkutils-bin.tgz

If you like our web site, applications and firmwares, feel free to support our site. Donations are used to pay the bills for our server hosting costs, development tools and purchase new tablets to support.

Avatar
ttz642t

Firmware Guru
Forum Posts: 53
Member Since:
2011/11/19
sp_UserOfflineSmall Offline
28
2012/01/25 - 02:27
sp_Permalink sp_Print

finless said

ttz642t, Yes I used https://github.com/naobsd/rkutils and the files are the SAME OLD FILES of rkcrc I already have!  I even did a file compare on them.  Those DO NOT support -k option.

Please tell me what I am doing wrong as maybe I am an idiot here.  But the bottom line is no matter what I do with that link, I get the same rkcrc.c I have today.

Bob

Bob,

 

A wild guess, are you using WindowZ ?

 

I think WindowZ command prompt converts to uppercase and it may not see the -p or -k option and alwas default to -p (as it doesn't see a -k as it gets converted to -K). Could try editing the code to accept either -k or -K !

ie change getopt to:
    while ((ch = getopt(argc, argv, "kpKP")) != -1) {

--

Steve

 

Well I'm off to bed now, 5:15 hrs till I get up for work 🙂

Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
29
2012/01/25 - 02:59
sp_Permalink sp_Print sp_EditHistory

No I am in a VM of Ubuntu period.  No windowZ..........  A VM is a virtual machine that does not even know it is running in windowZ..... OK....

I go to https://github.com/naobsd/rkutils and pull rkcrc.c and rkcrc.h

I then type in:

sudo gcc -o rkcrc rkcrc.c

I get a rkcrc file executable with NO errors!

Then I do something simple not using ANY SCRIPTS  I type in the following

sudo rkcrc -k newboot.img

I get back the following:

rkcrc -k option not supported.

I do not know what else to say.  Pretty basic no?  Tell me I am stupid thats fine... What am I missing here?

 

Bob

Avatar
finless
Stanton, Ca

Contributor
Forum Posts: 604
Member Since:
2011/12/10
sp_UserOfflineSmall Offline

Thanks Received: 2
30
2012/01/25 - 03:33
sp_Permalink sp_Print

OK so wait.... let me document 100% what I am doing ALL in Ubuntu VM

I open my safari web browser in Ubuntu and go to : https://github.com/naobsd/rkutils

I see the list of files but at the top I click the link for "downloads".

I get a choice.  Download as a zip or a tar.gz.  I download as a zip.

I then open the zip in Ubunbtu and copy out rkcrc.c and rkcrc.h to the directory I have my boot.img and recently made newboot.img

I then I type in:

sudo gcc -o rkcrc rkcrc.c

I get and see an executable rkcrc now.

Then I type:

sudo ./rkcrc -k newboot.img

I get back this:

rkcrc -k not supported.  use -p

OK so please.... tell me what the hell I am doing wrong here?

2 hours later and I am searching XDA forum for the original maker of rkcrc and -k option.  Since Meaguploads went down, I cannot find the original .c download.

Like I said... back in December when I was first working on cracking the ROM I was asking for some BASIC linux help.... Simple stuff to help me.... no one offered.  I had to go figure it out on my own the hard way.  Thats cool....  I have no problem with that honestly.  I learned a lot because of that. I will do the same with this.  Bottom line, I again MAY BE STUPID, but the Wiki does not work for me period.

 

Bob

Forum Timezone: Europe/Paris

Most Users Ever Online: 749

Currently Online: oblaarggag, ygriega
87 Guest(s)

Currently Browsing this Page:
1 Guest(s)


Devices in use: Desktop (74), Phone (15)

Top Posters:

finless: 604

DarthJabba: 551

maikal: 394

mussonero1: 350

alex: 252

damo: 243

DanielVd: 237

Mark06: 222

Newest Members:

ygriega

mhmtdg222

xsevko

jj3111

stoqn62

STOQN222

Forum Stats:

Groups: 10

Forums: 185

Topics: 6037

Posts: 60500

 

Member Stats:

Guest Posters: 43

Members: 262194

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech


CrewRKTablets moderators: JochenKauz and Astralix