yashsingh1/xdaforums huggingface dataset:
[Gen8 Android Development] $aur0n:
Ok - i've prepared new EasyInstall with "ReInstall" option - this will allow you to reinstall "system" without touching installed apps. I just need to check it yet... ;) if I haven't broke some other stuff with this...

Here (http://sauron.pourix.com/UrukDroid/UrukDroid-1.0/EI/) are necessary files. Install package is not 1.0 (it's a bit updated 0.7 - kernel and stuff).

from recover menu install kernel and initramfs

boot to developer edition and choose ReInstall (will be renamed later to repair)

copy UrukDroid-install.tgz over USB when asked to (preferably from link above - but can be from standard 0.7 edition)

I've updated also kernel for 1.0RC2 - it should have now all previous parches and functionality applied and working. Had not single failure with it - so I assume it's freeze less ;)
[Gen8 Android Development] reffu:
Just letting you know I chose the reinstall option but the first thing that it said after I copied the install file over was formatting file system. None of my apps and settings are here (like a clean install actually) but I should be fine with my older titanium backup. Thanks for the effort and the advice.

Edit: BTW just realized it might be because I have it installed to internal drive if that helps.
[Gen8 Android Development] $aur0n:
I said - "I need to check it" - I was doing it since I wrote that message... so

- formatting is done - but only rootfs is formatted - so this is correct

- sadly it's not an EasyInstall repair who erased your data but install during boot - i've just fixed that... I'll do one more test and reupload all files

but because of this we have new functionality of installation files ;) - I'll do data backup/recovery also later on...
[Gen8 Android Development] reffu:
Thanks, it's really not that huge of a deal since I was planning on reinstalling soon anyway. Thanks for the help. :)
[Gen8 Android Development] $aur0n:
Ok - I've reuploaded all files. I've tested full recovery of my test installation of UD0.7 - worked fine (it's sdcard installation).

ReInstallation is not doing any checks so be careful.

ps. I've made test update 0.7->1.0RC2. Everything works just fine - wifi, applib, termina, su, urukconfi :/ I guess you had extreme bad luck or something...
[Gen8 Android Development] snickle:
So far RC2 looks good. A little flaky starting and stopping wifi. But seems much more stable.

I will try some adhoc and some stress testing over the weekend.
[Gen8 Android Development] kevinddavis:
I installed this update. Everything works except that it automatically unloads the "internal storage". That's where all of the normal apps are installed, so no Angry Birds :-).

I'll reinstall from scratch in later in the day.
[Gen8 Android Development] $aur0n:
Remember - this requires to use RC2 update, or changing vold binary - you'll get your internal storage back this way ;)
[Gen8 Android Development] dimes:
Ok, but how can i do that? ;)
[Gen8 Android Development] todobarato:
Hello $auron,

I try to test the RC2, but I get one permission error :mad:, check the picture.

Using urukdroid-config and force update, is the same error result.

Urukdroid is 0.7 and is in the internal install on A43.

I never get the boot images to test in my 43. maybe for 1.0 version.

Ciao,

Ferenc.

PD. I have tested in the stock install from Archos the new firmware and is very stable, no random freezes so far, This was the only what the urukdroid needs.
[Gen8 Android Development] $aur0n:
To check

To set
[Gen8 Android Development] sibere:
well.. I used google to find this:

http://www.cyberciti.biz/faq/linux-laptop-power-saving/

Display or print current Laptop mode

Type the following command:

$ cat /proc/sys/vm/laptop_mode

Output:

0

Turn on or enable Laptop mode

Type the following command as the root user:

$ sudo echo 5 > /proc/sys/vm/laptop_mode

OR

# echo 5 > /proc/sys/vm/laptop_mode

and this :

http://www.linuxinsight.com/proc_sys_vm_laptop_mode.html

laptop_mode

Submitted by admin on Wed, 2006-05-31 16:26

laptop_mode is a knob that controls "laptop mode". When the knob is set, any physical disk I/O (that might have caused the hard disk to spin up, see /proc/sys/vm/block_dump) causes Linux to flush all dirty blocks. The result of this is that after a disk has spun down, it will not be spun up anymore to write dirty blocks, because those blocks had already been written immediately after the most recent read operation. The value of the laptop_mode knob determines the time between the occurrence of disk I/O and when the flush is triggered. A sensible value for the knob is 5 seconds. Setting the knob to 0 disables laptop mode.
[Gen8 Android Development] $aur0n:
Check /system/xbin/uruk_upd file permision (ls -l /system/xbin/uruk_upd) - it probably have no +x bit (chmod ug+x /system/xbin/uruk_upd).
[Gen8 Android Development] todobarato:
:) Thanks that was, i change the permission and start the update.

So far every thinks works.

Best regards.

Ferenc.
[Gen8 Android Development] todobarato:
I have found only one issue, cpugovernor is not working ok.

By reboot it is sticking in 1000mhz the cpu, if I go to energy setting and change it to optimal, it start to change the cpu mhz dinamically. but after one reboot is back to 1000mhz.( bad for battery)

I have disabled the service and now works ok, it changes it dynamically.

Best regards.

Ferenc.
[Gen8 Android Development] $aur0n:
Could you send cpugovernor stats? When it's on of course.
[Gen8 Android Development] todobarato:
Hello,

This is the stats.

export PATH=/usr/bin:$PATH

$ $cpugovernor stats

/system/bin/sh: cpugovernor: not found

$cd /etc/uruk.d/

$./cpugovernor stats

/system/bin/sh: ./cpugovernor: Permission denied

$ su

# ./cpugovernor stats

Uruk-CPUGovernor statistics:

Current governor: interactive

CPU Max: 1000000

CPU Min: 300000

Available frequencies: 1000000 800000 600000 300000

CPU statistics (tick spend in every frequency range):

1000000 41964

800000 5067

600000 108048

300000 115175

#

Ferenc.
[Gen8 Android Development] $aur0n:
So why do you say it's not working?
[Gen8 Android Development] sibere:
What is executed @ shutdown?

Hi devs.

On some android devices, a shutdown service is executed by the system when shutdown is selected in the menu.

In Archos init.rc, there is a reboot service, but no shutdown.

Example on my HTC desire:

service shutdown /system/bin/shutdown
user root
group root
disabled
oneshot

Do you know what is executed (script / command) on shutdown on our archos?
[Gen8 Android Development] $aur0n:
Yes - widget shows wrong values (cpugovernor stats can't show it wrong) - or when it happened to you, some task was occupying CPU and it could not go down.
[Gen8 Android Development] $aur0n:
I'm aware there is no shutdown command. I can try to use Linux one and see what will happen (you can check also if busybox/toolbox have no this functionality).
[Gen8 Android Development] todobarato:
Do you really think so, that the widget is showing wrong, but before the update was showing ok. i dont know, what is with the very hot issue?

is one command to check in the terminal the cpu state?

On otherwise the stability is really good, no more freeze by having 3 application open.

Best regards ,

Ferenc.
[Gen8 Android Development] sibere:
I've tried a shutdown exec and a shutdown script but none of them are executed at shutdown. I've also tried to add shutdown service to init.rc but still no results :/

It's a shame because there is a reboot script; but not a shutdown one.

Would be nice to unmount cleanly the NAND before rebooting/shutting down the system.
[Gen8 Android Development] woti23:
@$aur0n

- is there a special reason why you disabled adb and debuggable in default.prop?

- which initramsfs can be used to reflash the kernel/flash another kernel in recovery/sde?
[Gen8 Android Development] woti23:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

shows the current frequency
[Gen8 Android Development] woti23:
on the desire

strings /system/bin/shutdown

in terminal shows a little of what it does (wpa, adb ... off, umount, rmmod ...)
[Gen8 Android Development] sibere:
I've tried things from the desire, but nothing is starting shutdown when selecting it on the menu.

Sent from my HTC Desire with DATA2SD
[Gen8 Android Development] Lenn:
Im a noob but maybe you guys should ask the devs of extedet controls?;)

i have a shutdown widget from extendet comtrols..

maybe that would help.:D

Edit: Hooray, my 100th post:D
[Gen8 Android Development] woti23:
another thing, works for me

a tmpfs for market - like baadznews modified boot.img for init.rc on the desire

in init.rc

- at the beginning

export DOWNLOAD_CACHE /mnt/asec/download

- after /mnt/asec is created

# Market downloads
mkdir /mnt/asec/download 0777 root system
mount tmpfs tmpfs /mnt/asec/download mode=0777,gid=1000

no downloads appear in /mnt/asec/download

and disappear after installed and free the tmpfs

super fast market now
[Gen8 Android Development] $aur0n:
No reason, and ramfs/zimage are like in every release here: http://sauron.pourix.com/UrukDroid/UrukDroid-1.0/

Correct answer should be

/etc/uruk.d/cpugovernor stats"

What for makes another (because you already proposed one for browser cache) tmpfs filesystem - use /tmp for everything - it's the same.
[Gen8 Android Development] woti23:
no - he tried that script allready, and asked for another way to proof.
[Gen8 Android Development] $aur0n:
But the script is reading stuff from /proc - it simply can't be wrong, unless kernel is buggy.
[Gen8 Android Development] todobarato:
Hello $aur0n,

you are right the widget doesn’t read the values right, I have check it with other system application and the cpu is scaling correctly if I enable the cpugovernor.

Other question is about the camera app, I have seen that the stock archos, have improve the recording in HD resolution, (I don’t know if the improvement was in the kernel or the app) It was impossible to use it before, now works. Have you take this improvement to in this RC2 update.

Best regards,

Ferenc.
[Gen8 Android Development] laptopfreek0:
great

Hay man I just wanted to let you know that i have been using RC2 for about 2 days and I love it. But I did find one problem. I tried using RDP app and it kept saying that the hostname not found use ip instead... even though I used the ip. Tried a few different computers and different versons of the RDP app. Just thought I should let you know about this bug.
[Gen8 Android Development] $aur0n:
I've started google code project for UrukDroid - mainly to use Wiki since I would like to create some decent documentation for it (and I did not want to create another self hosting page).

So if anyone is willing to help... ;) (wiki and stuff...)

http://code.google.com/p/urukdroid
[Gen8 Android Development] neldoreth:
Very good idea.

I was donate for this proyect, and i will donate again in the next release. We need more developers like you.
[Gen8 Android Development] kevinddavis:
Don't wait! Donate today! I just donated again.
[Gen8 Android Development] cajl:
I made two donations
[Gen8 Android Development] $aur0n:
Thank's guys! I'm just doing some small tweaking (while family is watching "dumb" xfactor ;) ).

- I have added fresh boot screens for A70 and A101 (thx Martin once again) for 1.0

- created some new shutdown stuff (shutdown command etc)

- initial scripting for backup service (to backup rootfs/datafs on sdcard - and restore it when needed)

- and I've made some approach for "Rescue menu" during Uruk boot (when user press volume up/down during boot there will be another menu with some fixing/repairing options - but probably not in 1.0 - altho it's working already).
[Gen8 Android Development] neldoreth:
Hi again. I have one question.

Is possible group widgets in the next release of uruk?

You think is a good idea create a collective project like cyanogen? gitcode or something like that.

Enviado desde mi A70S usando Tapatalk
[Gen8 Android Development] $aur0n:
This is something that is controlled by Launcher - change launcher.
[Gen8 Android Development] neldoreth:
Group widgets when you press in screen, and select widget, and then the widgets are grouped. This is not in Launcher.

Enviado desde mi A70S usando Tapatalk
[Gen8 Android Development] fisha21:
Perhaps this is what you're after

AppWidgetPicker

Works well on my A101

Perhaps this could be incorporated into Uruk? (with Boombuler's permission of course!)
[Gen8 Android Development] Caste23:
Hi $aur0n,

Just a little question : When do you think you will release urukDroid 1.0 ?

Thank you.

PS : can't wait :D
[Gen8 Android Development] neldoreth:
Yep that. I install in my archos 70 and works fine... then i thinks is not necessary include in uruk, but it will be a cool feature.

Enviado desde mi A70S usando Tapatalk
[Gen8 Android Development] $aur0n:
Like I said - I'm writing documentation now. It's really painful and time consuming process - bit without this, it would be still beta ;)

You are missing 5.9% of your packets ;) (joke). Anyway CPU governor has nothing to do with WIFI, if you've checked old/new firmware for tiwlan module - there is not much more you can do. Check if you have no transmission (wifi - not tcp) errors because of to many networks on the same channel, perhaps try different router settings (WiFi is a technology far from being perfect)
[Gen8 Android Development] Caste23:
$aur0n,

Urukdroid v1.1 will have new archos firmware 2.3.26 ?

CaSte23
[Gen8 Android Development] $aur0n:
Probably yes (if it's going to work ok).
[Gen8 Android Development] CarsnGadgets:
well done $aur0n,

looking forward to it :0)

ps. will there be an upgrade option from 0.7 or will we require a fresh install?
[Gen8 Android Development] fzelle:
It's the same symptomes i had with ext4.

Until there is a more stable ext4 i stay with ext3. Since that change this doesn't happen anymore.
[Gen8 Android Development] cheefy:
sorry this howto is written great but in the end i end up with "cross make" telling me that theres nothing to do... can you explan me how to compile a c-written module for the kernel?
[Gen8 Android Development] Kashban:
That's what I'll do next, no need to use a fast file system which gets corrupted every two days.
[Gen8 Android Development] xenicle:
It seems to be ok !

Reformated, reextracted rootfs and updated initramfs/zImage from http://adrian.siemieniak.net/UrukDroid/trunk/

Whit this setup A70H boot to Urukdroid like a charm !

if you want some return do not hesitate to ask ! ;)
[Gen8 Android Development] chrulri:
you don't need to do that, it's just an example for if you want to build some linux tools or libs.

just stay with "make kernel-config" and "make kernel-build" and be happy ;)
[Gen8 Android Development] HerrieMan:
This links gives a 'You don't have permission to access /UrukDroid/trunk/ on this server.' error on my side, is this a modified 0.4 release (to use root on sda2) ? or are these the same as in $auron's release ?
[Gen8 Android Development] shklifo:
I was just thinking to use another way to boot SDE from, not sdcard.

Excatly from the internal flash drive (/dev/block/mmcblk1), partioning that device with other 2 partition in ext4.

So we have the first partition (/dev/block/mmcblk1p1) in fat32 resized with approximatly 6GB (as i note on the init script this partition may be use by archos to put a recovery dump file if the things go bad).

The second partition (/dev/block/mmcblk1p2) in ext4 of 500MB, where we can put the rootfs

and the third (/dev/block/mmcblk1p3) in ext4 of 1GB for the data (applications).

So we got the sdcard free, and could format it fat32 to be mounted on Windows if we like ...

I got a class 2 microsd card with approximatly 3mb/s write speed and actually the internal flash is for me the better choise.

The negative side is that to upgrade rootfs we have to boot to stock Archos android to be able to write the new rootfs on the second partition of the internal flash memory.

What are your thoughts about it?

Edit: I just notice that i'm not the only one who had this idea.

Ghostifish allready done it on that way ...

Click here to see his post
[Gen8 Android Development] Ghostifish:
I boot Uruk from the internal storage just like you describe. PC usb storage doesn't work.

The problem is not with how Windows (or any OS for that matter) mounts the partitions but with how android unmounts entire devices for use as usb storage.

Coupled with the fact that if android can't unmount BOTH internal and sdcard storage, it doesn't hand either over and reports an error.

Short answer, if you use UrukDroid, you can't have pc usbstorage.

The only way, at the moment that I can see to get Uruk and PC storage to work is to install it to mmcblk0. But thats dangerous and it wouldn't fit anyway.
[Gen8 Android Development] $aur0n:
First of all DON'T do another spam thread - It's for developing UrukDroid only! Don't do some chitchats here!

EXT4 is NOT corrupted - it's just bad programming. The same you will have with old, but still one of the best XFS filesystem. All this corruptions are because people are to lame to read manuals and write some stuffs.

So there WILL NOT BE better ext4 implementation. I've made some changes in source (backports), and disabled "delayed allocation" - it makes some performance drop, but probably will make it more reliable for Android purpose (some other solutions for lame programmers, are made in later kernels 2.6.32+ - but this makes big difference and vfs source tree and can be hard to backport).

0.4 for A70H will mount not second partition of HD drive as /root. From 0.5 I'll probably change order in SDcard installation either.

When you have problem with launcher (Archos wizard starts like in first run) - it's /data problem, no rootfs - so update only /data (best from backup - but from stock fs will do)

HerrieMan: I've posted exact location to files on my server - go back and take a look at my post. And yes I'm aware some storage is now not mounted - it's just a start

chulri: yes I use Android NDK (android-ndk-r5), and could you please try DVB support so I will know what to change/add?
[Gen8 Android Development] shklifo:
Yeah, i just see your previuos post and edit mine;)

You are right, we can't mount the internal device in windows, as android can't umount the second partition (rootfs).

But for me isn't a big deal as we can copy staff form the first partition of internal flash to sdcard and mount it on pc or linux machine.

By sdcard boot method you haven't access to sdcard by usb connection too.

You have to shutdown the archos to be able to umount cleanly the sdcard and mount it readonly on Windows or access r/w it by linux.

For me (i will get a 16GB card, class 4) is more interesting/important a free sdcard that the usb access of the internal flash.
[Gen8 Android Development] HerrieMan:
Indeed it seems to work, I've reformatted the internal hd, sda1 as storage vfat, sda2 as root ext4 and sda3 as data also ext4.

I've modified the init.rc for one line:

# mount ext4 /dev/block/mmcblk2p2 /data noatime

mount ext4 /dev/block/sda3 /data noatime

And everything seems to work, no more 'internal hd failure' messages, /mnt/storage is auto-mounted by urukdroid, /data is present on /dev/sda3.

One peculiar thing I noted is that when I now connect my android via usb to my linux box, all three partitions can be mounted from there. I've tried to mount /dev/sdd2 (equals /dev/sda2 on archos) on my linux box, and I was able to see (and modify) the root filesystem of my archos while simultaneous my archos was still running and the same root filesystem was mounted there.....

But at the moment I'm happy with this system, I will do some more tests when time permits, for now a big thanks to $auron !
[Gen8 Android Development] $aur0n:
Ok

I've made some autoupgrade feature, and autocopy - I'll try to release it for few hours.

edit: Here is new release information http://xdaforums.com/showpost.php?p=10636441&postcount=682
[Gen8 Android Development] cheefy:
i think it's no good idea to distribute the google apps preinstalled. i think we should build some kind of a installation routine and distribute them seperately because the guys from cyanogen ran into serious troubles with that:

http://androidandme.com/2009/09/hacks/cyanogenmod-in-trouble/

and now they are distributing the closed source stuff seperatly here.

I might dig into this later...
[Gen8 Android Development] $aur0n:
I was not aware of this potential problem :( lets hope G. will change policy soon - or there will be some new market soon. I have to think for a while about this. Probably we are too small to interest G. but...
[Gen8 Android Development] chrulri:
first: why don't you go that way?

second: please refer to Kashban with regard to testing dvb on urukdroid as I haven't installed it yet and might not install it in near future
[Gen8 Android Development] $aur0n:
I've took a closer look at your post and howto - really great work! But I started with Android NDK - I don't see a reason why to change it. Am I missing something?
[Gen8 Android Development] chrulri:
I think, kernel modules which were built with the archos toolchain won't be compatible with your kernel, because of the different toolchain.

Either you tell us how you built the kernel (the one from gen8-gpl-froyo.tgz ?) with the ndk toolchain (scripts or maybe a howto) or you use the archos toolchain for further releases
[Gen8 Android Development] $aur0n:
They are compatible - we have some binary modules from archos (hdmi for example) - and they run fine. But there are things in kernel, that when turned of brakes this compatibility.

Compilation is real simple:

- put NDK binaries on your $PATH

- declare -x ARCH="arm"

- declare -x CROSS_COMPILE="arm-eabi-"

- and you can go "make" :)

Anyone (once again I ask) know how to keep Archos awake (from system level) - command, some system setting, switch - anything?
[Gen8 Android Development] shklifo:
I'm quoting myself ...

Today i just installed uruk 0.3 on internal flash disk (/dev/block/mmcblk1) like i say on this post risizing the first partition (FAT32 5,5GB) from my Ubuntu deskop and creating the other 2 partitions.

Everything go fine, i just edit init script (mounting initramfs.cpio.gz, change and ripack it) init.rc and /etc/vold.fstab from compressed rootfs to be able to mount sdcard on Archos 70IT (replace "3" with "auto" and "mmcblk2p3" with just "mmcblk2").

Copied /data partition from SD (second partition) to the internal flash (third partition) by tar, extracted the modified rootfs to the second partition of the internal flash and finally flash initramfs and kernel image on SDE.

Now i can boot correctly from the second partition of the internal flash and the more important thing is:

I can access via USB both internal flash and sdcard form Windows and linux!

- In linux desktop (ubuntu) via usb i can mount all the 3 partitions of internal flash in rw mode (the first one is fat32 and the other 2 in ext4) and the whole sdcard (fat32) in obvioslly rw mode.

- From windows i can access the first partition of the internal flash and the sdcard in rw mode.

So, my thoughts on quoted post are not true, as i say, we can access both storage form windows or linux.

@Ghostifish

Maybe you have to edit the /etc/vold.fstab to be able to access both of them via usb connection.

Let me know.
[Gen8 Android Development] localh0rst:
maybe /sys/power/sleep_while_idle ?
[Gen8 Android Development] solune:
Hello,

I've installed last version of urukdroid to make update of urukconfig, but I have a problem : my sd card is always unmounted. If I try to mount it, it's unmounted immediatly.

I've upgraded from 0.7, any idea or do I have to do a fresh install ?

Thanks
[Gen8 Android Development] $aur0n:
You have used 1.0RC2? Does your /system/bin/vold is the same as this one?

http://dl.dropbox.com/u/1017593/ArchosGEN8/UrukDroid-1.0/vold

md5sum vold 0215bf16a3fbcfa73fdfc92981255334

You certainly do NOT need to do fresh install.
[Gen8 Android Development] jknut:
I find the 1.0RC2 is very fast and responsive. Thank you so much for your work on Uruk. Is there an overclock kernel for 1.0RC2?