yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] $aur0n:
Kernel/Initramfs for 1.1RC1

http://dl.dropbox.com/u/1017593/ArchosGEN8/UrukDroid-1.1/UrukDroid-1.1RC1-kernel.tbz2

Most of visible changes are in "Rescue menu"

- AlternativeOS boot is now polished

- "bare metal" rootfs backup (/sdcard/sdcard/backup/)

Rootfs restore "MAY!" work - completely not tested yet.

I'll prepare howto for alternativeOS later, for now:

root@urukdroid:/root# cd /AlternativeOS/
root@urukdroid:/AlternativeOS# ls -l
total 24
-rw-r--r-- 1 root root 36 Jun 14 13:02 boot.lock
drwxrwxrwx 2 root root 4096 May 6 15:55 debian
-rwxrw-r-- 1 root root 333 Jun 14 12:16 debian.boot
-rw-r--r-- 1 root root 205 Jun 14 13:02 debug.txt
drwxrwxrwx 2 root root 4096 May 11 15:07 meego
-rwxrw-r-- 1 root root 234 May 11 16:03 meego.boot
root@urukdroid:/AlternativeOS# cat debian.boot
#!/bin/sh

#
# Script to boot alternative OS: Debian
#
# OS_Name: Debian
# OS_Desc: Debian armel
#
# Ver: 1.1 (14.06.2011) Adrian (Sauron) Siemieniak
#

set -xv

/bin/mount -t ext4 /dev/mmcblk2p1 /AlternativeOS/
exec /sbin/switch_root /AlternativeOS/ /sbin/init

# IF it fails - we can do some clean ups
/bin/umount /AlternativeOS/

Rescue menu will look for "*.boot" files in /AlternativeOS on rootfs disk. It will create menu of this systems and allow to boot it.

To use rescue menu (Uruk rescue menu), after "Archos" logo press couple of times volume button.
[Gen8 Android Development] omendacat:
I thank you again for your fast response..

I did what you said. But it is still not work. And unfortunately, I lost all my files after install UrukDroid. :( :confused:

I don't know how to debug.

Thanks,

Omen
[Gen8 Android Development] omendacat:
Lennb, you make me really jealous!! I want it sooooo badly! :(
[Gen8 Android Development] Lenn:
Sorry, if this sounds bad, but i dont know whats your problem..

Just install UD 1.0 and after that flash siberes Kernel, so it worked for me:)

Maybe i "over-read"(free german translation:D) your problem..
[Gen8 Android Development] $aur0n:
You will have UIstatus switch (UI - UserInterface) with every service. For example

[root@localhost uruk.d]# /etc/uruk.d/compcache UIstatus
on
[root@localhost uruk.d]#

Opposite to "on" is "off" message - if you prefer it can be 0/1
[Gen8 Android Development] solune:
@Khasban :

It is what I believed, but it's not that simple. Google design theirs programs to work each other in separate space, with no access to system or other apps by default, for security reasons.

I use my uruk 70it in adb to debug my program.

In logcat I see "io.file error (access denied)" when I try to write to /system/etc/uruk.conf/.

I have found some line code to ask for root rights at startup (I have the superuser ask me if I want to give my program root rights firt time I run it, and see the toast telling "UrukConfig have recevied root permissions" each time I launch it, but it's not enouth. Not all the program recevie root permission, just the operation in the code I put to take root rights. So I must modify the lines codes who give root rights to do what I need to do, and for that, I must better understand it :) Maybe I must add permissions in my project too...
[Gen8 Android Development] solune:
on/off message is ok, anyway I think the program will catch a string, I'll convert to boolean after, as I already do when reading the config files.

Have you also a command to start and stop the service in the same way, like :

[root@localhost uruk.d]# /etc/uruk.d/compcache start

?

(Can't look by myself for now, not at home).
[Gen8 Android Development] $aur0n:
That's default behaviour for all services (start/stop)
[Gen8 Android Development] solune:
Ok, sorry for my noob questions ;)

I've found code for writing with root rights in \system\ and code to launch shell command from a program.

Will try all of that tonight.
[Gen8 Android Development] chrulri:
hi $aur0n

I've backported some usb ids for kashban, can you please recompile the dvb modules with the four patches you can find here: http://code.google.com/p/archos-gen8-dvb/source/browse/#svn/trunk/sources (kernel_*.patch)

thanks in advance
[Gen8 Android Development] cheefy:
I had some problem with my partitions but now its fine.

I was not able to uninstall the gapps properly in stock. I solved the problem now, by not copying the data partition during startup, doing the initial wizard, login to the market, get terminal emulator and make a tar of the old data partition. go to the desktop and extract the tar to the new data-partition with kps arguments so that it keeps existing files and preserves owner and permissions. now i have most of my apps back including their data, and gapps are working too.

The backup script is in beta testing now, think i will give to you guys soon. perhaps solune could implement some triggers for backups in his app. its just a shell command...

btw: the interactive governor makes it really snappy. thats great. thanks for that sauron!!

greetz
[Gen8 Android Development] $aur0n:
Oki done. If I read properly patches, except patching I added siano dvb module (rest is modification of currently compiled source) and modified dvb service to work with it.

This DEVELOPER ONLY!!! update add also interactive governor (not running by default), and compcache (ramzswap) - running by default. Some cleanups, like always and new tools (replaced for full version of swap and gzip utils), and modified services (compcache,swap,dvb) for testing with UI.

Put update file in root of Uruk, patch zImage and initramfs.
[Gen8 Android Development] Kashban:
First test wasn't successful. w_scan states unrecognized DVB card. Will post logs tomorrow.
[Gen8 Android Development] snickle:
Like the dev kernel, performance is dramaticlly improved.

Still seeing two issues that am am trying to build test case for:

Return from hibernate from hibernate is sporadic. Seems to be related to airplane mode when wifi is enabled. I will track down the failure scenarios.

Also, i see 3 removable drives in windows when i connect the 101. All show no media. I saw the actual drives under 0.4.0. Need to see if it is something on my end.
[Gen8 Android Development] Kashban:
I agree, the performance is good and the system very stable. I also do not experience a frozen device when resuming from sleep. Using ext4 and the experimental dvb kernel.

Regarding dvb: That is not working with the terratec cinergy usb xss (rev 2).

dmesg:

<6> :	hub 2-0:1.0: hub_resume
<6> :	hub 2-0:1.0: port 1: status 0101 change 0001
<6> :	hub 2-0:1.0: state 7 ports 1 chg 0002 evt 0000
<6> :	hub 2-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
<6> :	usb 2-1: new high speed USB device using musb_hdrc and address 2
<6> :	usb 2-1: default language 0x0409
<6> :	usb 2-1: New USB device found, idVendor=0ccd, idProduct=00ab
<6> :	usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6> :	usb 2-1: Product: Cinergy T XXS
<6> :	usb 2-1: Manufacturer: TerraTec GmbH
<6> :	usb 2-1: SerialNumber: 0000000001
<6> :	usb 2-1: uevent
<6> :	usb 2-1: usb_probe_device
<6> :	usb 2-1: configuration #1 chosen from 1 choice
<6> :	usb 2-1: adding 2-1:1.0 (config #1, interface 0)
<6> :	usb 2-1:1.0: uevent
<6> :	drivers/usb/core/inode.c: creating file '002'
<6> :	hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
<6> :	hub 2-0:1.0: port 1 enable change, status 00000503

lsmod:

Module Size Used by
musb_hdrc 60504 0
dvb_usb_dib0700 31644 0
mt2266 5040 1 dvb_usb_dib0700
tuner_xc2028 19632 1 dvb_usb_dib0700
xc5000 11536 1 dvb_usb_dib0700
s5h1411 9628 1 dvb_usb_dib0700
mt2060 4988 1 dvb_usb_dib0700
dib3000mc 11720 1 dvb_usb_dib0700
dib7000p 15180 1 dvb_usb_dib0700
dib0070 6832 1 dvb_usb_dib0700
dib7000m 13364 1 dvb_usb_dib0700
dibx000_common 3276 3 dib3000mc,dib7000p,dib7000m
dvb_usb 16128 1 dvb_usb_dib0700
dvb_core 85544 1 dvb_usb
tiwlan_drv 825892 0
iptable_filter 2740 0
ip_tables 10568 1 iptable_filter
x_tables 14324 1 ip_tables
ntfs 214452 0
ramzswap 16988 1
lzo_decompress 2920 1 ramzswap
lzo_compress 2428 1 ramzswap
fm_drv 51284 0
bt_drv 5024 0
st_drv 17312 2 fm_drv,bt_drv
nwolc 42912 0
hdmitx 122300 3 nwolc
bridgedriver 237716 0
dspbridge 1944 0
mailbox_mach 4848 0
mailbox 7368 2 bridgedriver,mailbox_mach
omap_vout 27516 0
omap_voutlib 3848 1 omap_vout
omap_resizer 17136 1 omap_vout
omap_previewer 14240 0
omap34xxcam 16860 1
omap_ov7675_isp 3488 0
ov7675 13400 0
isp_mod 107384 4 omap_resizer,omap_previewer,omap34xxcam,omap_ov7675_isp
fuse 55652 4
snd_soc_archos 10332 0
snd_soc_tda19989 3200 1 snd_soc_archos
snd_soc_wm8988 21692 1 snd_soc_archos
snd_soc_wl1271 3160 1 snd_soc_archos
snd_soc_omap_mcbsp 7444 1 snd_soc_archos
ppp_async 8864 0
ppp_synctty 7372 0
ppp_generic 19796 2 ppp_async,ppp_synctty
slhc 5464 1 ppp_generic
[Gen8 Android Development] $aur0n:
It won't work - since you haven't changed dvb config - change module name for you card in /etc/uruk.conf/dvb

from:

dvb_driver='dvb-usb-af9005'

to

dvb_driver='dvb-usb-cinergyT2'

It's all written there...
[Gen8 Android Development] Kashban:
According to the linux driver page "dvb-usb-dib0700" is the correct driver for the XSS (HD).

I did change the config to "dvb-usb-dib0700" and restarted the service.

Anyway, I tried cinergyT2 too, same result. Even rebooted the Archos, to no avail. dsmesg output stays the same, only interface driver name is changing.

I'll try by reflashing the image, perhaps something went wrong there. Any chance to tell whether I'm using the correct kernel?
[Gen8 Android Development] $aur0n:
Part of dmesg you wrote, only tells about connecting USB device - there is no message generated by DVB driver. There should be information about loading firmware... really weird..

edit:

After you connect device/load modules check if there is new device created /dev/dvbt/adapter0/
[Gen8 Android Development] Kashban:
Yeah, that's what I recognized too, saw the correct lines on my Ubuntu VM yesterday. Under /dev/usb there are two adapters listed as directories (adapter0, adapter1), but nothing in there. Not possible to "cat" them, so they're nothing like /proc/xxx.

I'll post the dmesg from ubuntu, perhaps that'll give us some hints.
[Gen8 Android Development] solune:
Hello,

So here is my little program in alpha version 0.1 :p

Discleamer : It's a fresh code not fully tested, do not use it unless you've hability to restore files in \system\etc\ that can be change with the program.

It's really a start, look ugly, and all don't work at all.

For now, you can read startup state for 6 services (compcache not fully inside for now), and you can change startup for this 6 services.

You can also change swap mem size and swappiness for swap configuration.

What I will do now (but not today) :

- read if service actually running or not

- give ability to start and stop each service.

- give ability to configure others services

Know bug : button Services config don't do nothing, as Edit sshd config as well, in the have to !

A little strange bug I don't understand for now : when finishing second intent (the one where we configure startup services), it came back again once ! The second time first intent come front (as it would do). Searching on it...

For what I said before about root and access system files, forget all of it, it was only right on files :D
[Gen8 Android Development] $aur0n:
@solune: look quite promising :) On/off works ok. It should put old values to fields when changing configuration. Definitly needs some GUI cleanups/changes - like first screen (i've noticed it's state of services after I finished testing other things - it's way to small).

about DVB: I'v managed to run some old/cheap DVBT USB card based on EC168 chipsed. It required way to much compiling to be fun :/.

dvb_usb_ec168 2-1:1.1: usb_probe_interface
dvb_usb_ec168 2-1:1.1: usb_probe_interface - got id
dvb-usb: found a 'E3C EC168 DVB-T USB2.0 reference design' in cold state, will try to load a firmware
usb 2-1: firmware: requesting dvb-usb-ec168.fw
init: untracked pid 2060 exited
dvb-usb: downloading firmware from file 'dvb-usb-ec168.fw'
dvb-usb: found a 'E3C EC168 DVB-T USB2.0 reference design' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (E3C EC168 DVB-T USB2.0 reference design)
DVB: registering adapter 0 frontend 0 (E3C EC100 DVB-T)...
MXL5005S: Attached at address 0xc6
dvb-usb: E3C EC168 DVB-T USB2.0 reference design successfully initialized and connected.
drivers/usb/core/inode.c: creating file '003'

LiveTV does not work :/ (I know it's work in progres...)

From scan I have this

690000: (time: 04:09) (time: 04:12) signal ok:

QAM_AUTO f = 690000 kHz I999B8C999D999T999G999Y999

What's next? :)
[Gen8 Android Development] solune:
Thanks for trying $hauron :)

Yes GUI is on my TODO list, will be better (can only be) :)

I'm looking at starting and stopping service with scripts in \system\etc\uruk.d

But if I send "\system\etc\uruk.d\iptables start" for example, I have in return "This module is disabled in /etc/uruk.conf/iptables"

Can you give me the way to start the service without changing his startup status ?

I thinks there is 2 possibility :

- someone want always the service and check the startup on,

- and someone want just for few minutes the service and go to activate it with GUI (or command-line).

So is it possible to have a UIstart and UIstop to go with my UIstatus ? Without check of enable=1 in uruk.conf ?

Thanks
[Gen8 Android Development] $aur0n:
I will give it a thought - and try to figure out something.
[Gen8 Android Development] Lenn:
Thanks $aur0n!

I say in the name of xda to you: Thank you for your hard work on Urukdroid! You get nothing and still do it, thanks!:):);)

Just want to say: At the Urukdroid Bootscreen, the "loading bar" turns around before it shows "Rootfs: Init ..."

Just want say:) its not a real problem:D
[Gen8 Android Development] $aur0n:
I've put some RescueMenu information to wiki - http://code.google.com/p/urukdroid/wiki/RescueMenu

I'll try to make backup/restore fully usable and probably will push 1.1 (but first RC of course).
[Gen8 Android Development] omendacat:
No, it is fine.. thank you for your reply..

My problem is I install UrukDroid 1.0 and then flash Sibere kernel. But nothing happen. Which mean my usb cannot be read by my archos. I'm worry if my archos is the main problem.. :(
[Gen8 Android Development] Lenn:
Then your usb device need too much power (<500mA);)
[Gen8 Android Development] sibere:
Flash drives should work.

USB drives and others USB gadgets may or may not work depending on the power needed.

Even though I set the MAX to 500 in my kernel, it doesn't mean that the usb port will give you 500mA.

HDD like the samsung S2 seems to work according to lennb
[Gen8 Android Development] $aur0n:
@solune - are you planing to do some changes in UrukConfig for 1.1 release?

I have one more question for you, could you add "Reboot to rescue menu" option somewhere. The idea is to reboot archos to rescue menu without pressing volume buttons. It's done by creating "/rescue-boot.lock" file. With this file next boot to UrukDroid will go to "Rescue menu".

ps. It's not in released initramfs yet - just on my device ;) - but probably today i'll put RM with working backup.

ps2. Backup structure is like this

root@urukdroid:/sdcard/sdcard/UrukDroid_backup# tree
.
|-- 2011.06.15
| |-- UrukDroid_rootfs_backup.md5
| `-- UrukDroid_rootfs_backup.tgz
`-- 2011.06.16
|-- UrukDroid_datafs_backup.md5
|-- UrukDroid_datafs_backup.tgz
|-- UrukDroid_rootfs_backup.md5
`-- UrukDroid_rootfs_backup.tgz

2 directories, 6 files

ps3. I've updated kernel package - with fully working backup of rootfs/datafs (no restore yet)
[Gen8 Android Development] solune:
Hello,

Nothing new planned for now for UrukConfig, was just waiting return if Force Close still happen with widget, but seems to be ok (never happen to me at least !).

Ok to add reboot to rescue menu, no problem for that !

Maybe can I add a reboot to stock android too if there is a way to ?
[Gen8 Android Development] omendacat:
no, my flash drive only need 100mA. I check it via windows device manager. but it will work if I connect to external hd with external power.
[Gen8 Android Development] omendacat:
then my archos is the problem then.. :(
[Gen8 Android Development] Lenn:
Do you can use other "normal" usb devices (like usb sticks, mp3 players,...)?

If yes, maybe you have flash the kernel wrong..

If nothing work, i would completly reset your archos;) then just do a fresh install of UD + siberes usb kernel :)
[Gen8 Android Development] Lenn:
Yep, but i think our usb port can give at least 400mA, because otherwise a normal 2.5" hdd wont work, they usually need 600-700mA starting power, but you can find a bunch of hdd's that will require less than 500mA:)

Hint:

I think every mini (1.8") hdd will work, they usually need 200-300mA starting power:)
[Gen8 Android Development] LeoNg628:
Hi $aur0n,

Can you add more guideline about upgrade Kernel.tbz2 and Update.tbz2?

Because most of us dont know how to use?

In my knowledge, I need to put that kernel into /data/UrukUpdate folder and wait for reboot, then put that Update into same folder and wait for reboot, then both file will be delete automatically, Am I correct?

Thanks!

Leo
[Gen8 Android Development] omendacat:
I will look for it Lennb... :)
[Gen8 Android Development] Lenn:
I think yes:D

Because these are *.tbz2 files and they used for the Update function in Urukdroid:)

Just try it;)
[Gen8 Android Development] $aur0n:
It's UrukDroid package (update/upgrade/kernel) - always just drop it to mentioned folder - that's it. Since 1.1B if you have new UrukConfig you will get information when update/upgrade is in progress...

ps. Update kernel package has all functionality for backing up rootfs/datafs (with quite fancy - unless for me ;) - progress indicator). And almost done restore (you can use it - it won't overwrite anything now) - it will just let you choose file and check consistency.
[Gen8 Android Development] LeoNg628:
But would it be any problem if there are no any update file and just apply the kernel file?

because I'm using 1.0rc3, sholud it apply that 1.1rc1?
[Gen8 Android Development] $aur0n:
And where have you seed 1.1RC1 update/upgrade file? ;) It's just kernel - so yes you can apply it on 1.1 beta.
[Gen8 Android Development] $aur0n:
UrukDroid 1.1RC1

Hi,

It's me .. again ;)

UrukDroid 1.1RC1

* UrukDroid-1.1RC1-kernel.tbz2

* UrukConfig.apk

* UrukDroid-1.1RC1-update-rc.tbz2

Update will work for 1.1betas, but "should" work also for 1.0.

Full changelog here, changes from 1.1beta

- updated UrukUpdate to communicate with UrukConfig and show information about process

- enabled multiboot - AlternativeOS in Rescue Menu

- enabled backup/restore feature in Rescue Menu

- some cleanups in UrukServices

- add tree utility

How to update: Install kernel, update UrukConfig (this one is from 31.05 - I hope it's the latest one, but I could miss something), do a backup (RescueMenu) and do Update.

Please test backup/restore feature of Rescue Menu. Like for now restore works in "overwrite" mode (so it won't delete data on restored partition) - in future it may/will change probably, like for now it's safer this way.
[Gen8 Android Development] andre.mud:
I have ud 1.0.0

Do i neer tot installatie other packages first or can i just install these.

André
[Gen8 Android Development] LeoNg628:
very nice to see and RC1 update, i will test it tonight and report asap
[Gen8 Android Development] Caste23:
Great !

Downloading now !!! :) :)
[Gen8 Android Development] Caste23:
Hi $aur0n,

I think there is a problem with pictures.

After update 1.1b2 to 1.1R1 I have a very bad quality.

CaSte23
[Gen8 Android Development] thefunkygibbon:
installed 1.0 fresh and upgraded to 1.1RC and it seems to be fine. not had too much of a play with it yet though but looking good so far
[Gen8 Android Development] $aur0n:
What pictures? Where? What program do you use?

As a picture viewer I use QuickPic.
[Gen8 Android Development] Caste23:
All my pictures

I use default app "gallery"

I have to zoom out in order to have good quality
[Gen8 Android Development] Caste23:
Ok I found something :

The first picture loaded have a bad quality but if i touch the screen the picture it's ok !
[Gen8 Android Development] $aur0n:
Despite this problem I advice to use quickpic - it's much more flexible. I'll take a look I there is something wrong on my device.
[Gen8 Android Development] Caste23:
ok. I will try quickpic asap.

2 others problems :

1.I can connect my LG optimus 2x to my archos like a modem ( WIFI tethering)

but I can't surf on internet

2. When I launch android Market I have to sign in my google account (it's not a big problem)

Somebody tried this ?

Thanks a lot
[Gen8 Android Development] thefunkygibbon:
1. wireless is wireless is wireless. if its not working tethered to your phone. the archos cares not if its a phone or a router its connected to. i would investigate the phone rather than blaming uruk

2. thats the way android market works (?) its tied to your google account. thats how it knows what apps you got and have bought etc
[Gen8 Android Development] Caste23:
1. I know.... i'm not blaming uruk but i can say that with archos stock rom it's work and with urik 1,1b2 too
[Gen8 Android Development] todobarato:
Hello,

I have installed, but I get the same glitch as in 1.1beta:mad:, the button bar where the home button is, it is present but doesn't works, if you press the buttons it show how it was press, but nothing happens, If I long press the power button, it came the menu option for Button_mode, with the ogle big button bar, this works, but is a wast of screen . I have one Archos 43 . I have updated from 1.0.

I will restore my old system with part-clone, this take less that 5 min.

If some debugging need to be done I am ready to do it.:)

Best regards.

Ferenc,
[Gen8 Android Development] solune:
Hello,

Here is UrukConfig with rescue button in option tab.

I'ven't test it at all, can't test for now, if someone could tell if that works as it should ? Thanks a lot :)
[Gen8 Android Development] $aur0n:
Yes it's working - big thx!
[Gen8 Android Development] vantoman:
Dear $aur0n ;

Thanks for the great effort your doing on UrukDroid , Keep it up :)

There is one issue i'm facing while trying to run compcache as it shows the following error message :

FATAL:Module ramzswap not found .

swapon: /dev/block/ramzswap0: stat failed: no such file or directory
[Gen8 Android Development] $aur0n:
Run "depmod -a" from terminal (as a root).
[Gen8 Android Development] jackson0829:
Hi, Sauron:

Great to seeing new UrukDroid 1.1 RC1 announcement and which is good for me to enhance Archos 101 applications , I have tested it and got two strange issues as beneath for your reference:

(1)Most of time ,the UrukDroid 1.1 RC1 (built in UrukConfig 1.1) was hanging on

during 2nd "UD Loading" boot logo appearing??

--->I try to change back to UrukConfig 1.0 then can smoothly turn on!!

----> I suppose that is because UrukConfig 1.1 Removed "wpa" service

which is more useful for me due to my Wifi router is working in WEP model

need to disable "wpa"service?

(2)When I Plug in the DC jack,the UrukDroid 1.1 RC1 was hanging on

during 2nd "UD Loading" boot logo appearing?? (no matter built in

UrukConfig 1.1 or 1.0)

---> I try to take out the DC Plug (remain only internal battery )

and reset then can smoothly turn on !

Could you teach me how to solve the strange problem???
[Gen8 Android Development] calebzulawski:
I have the same problem as todobarato (on an A43)... the "back" soft key seems to be acting as the search key, and the other soft keys light up when pressed, but do not function. Since "button mode" still works, I tried using UrukDroid 1.0's virtualkeys.A43 (the last version that worked for me, 1.1 beta also had this problem) to no avail. Any idea how to fix this? Button mode sucks :(

Also $auron, thanks for AlternativeOS! I know what I'm going to be playing with in my free time for the next few weeks...

EDIT: I upgraded straight 1.0 -> 1.1RC1, didn't go through any of the betas (I had the same problem with them...)
[Gen8 Android Development] coen22:
WiFi doesn''t work right and when I try to reconnect my archos restarts

Could you please fix this?