debian - is it possible to have swap on the microsd

Special Developer Edition Firmwares and Hacking on Archos 5 IT, 5/7 IMT, 605/705, with Android, ├àngstr├Âm and other Linux
Post Reply
penguinrepair
Archos User
Archos User
Posts: 97
Joined: Fri Apr 29, 2011 6:03 pm

debian - is it possible to have swap on the microsd

Post by penguinrepair »

i am using the sde kernel and initramfs, and trying to compile a kernel nativly to see if its possible, if not im getting a new device, i want a portable native debian machine that i can comiple software on, without being restricted by zygote and avos, is this a pipe dream due to hardware limitations and the 2.26.27-omap1 kernel or just something that i'm doing, i've tried the atmega scripts and nothing seems to keep the device alive, ubuntu reports the charge at 35% and shuts down also, any help would be greatly appreciated...

running the factory firmware i have no issues with shutdown, just no swap
a5it-8g debian-android-anoa
unknown
Archos Novice
Archos Novice
Posts: 13
Joined: Sat May 28, 2011 6:18 am

Re: debian - is it possible to have swap on the microsd

Post by unknown »

Does 2.6.27-omap1 support the cardreader?

I assume you are inside a rootfs image. There are two ways I can think of do get swap.

1. use a swap file
2. mount a external (swap)-image as loop
penguinrepair
Archos User
Archos User
Posts: 97
Joined: Fri Apr 29, 2011 6:03 pm

Re: debian - is it possible to have swap on the microsd

Post by penguinrepair »

unknown wrote:Does 2.6.27-omap1 support the cardreader?

I assume you are inside a rootfs image. There are two ways I can think of do get swap.

1. use a swap file
2. mount a external (swap)-image as loop


the problem isnt that, i want to know if im wasting my time on the microsd having swap partions, if it cant do swap, then i guess i cant md0 the device and have one large drive formatted to btrfs, i need to know if i can have a battery/device that stays alive with a microsd that stays active? if it wont then i guess i may have a donation...
a5it-8g debian-android-anoa
unknown
Archos Novice
Archos Novice
Posts: 13
Joined: Sat May 28, 2011 6:18 am

Re: debian - is it possible to have swap on the microsd

Post by unknown »

ok, i am not sure what you mean...

maybe this helps a bit:

I do work on a own ubuntu image, with nicktime 2.6.37 kernel. It doesn't shut down, touchsreen works nicely, I can ssh into it via usb and I can mount sd-card, pretty sure I could use it as swap as well. I wouldn't want to try to use btrfs anywhere, since it isn`t ready in 2.6.37 and surely not in 2.6.27 (unless you backport something from a more recent kernel). I also can compile things.

If you can live with 2.6.37 kernel wireless "pukeing", than I could upload my work-in-progess overlay. I think it should work just as well on your debian as ist works on my ubuntu. interested?
penguinrepair
Archos User
Archos User
Posts: 97
Joined: Fri Apr 29, 2011 6:03 pm

Re: debian - is it possible to have swap on the microsd

Post by penguinrepair »

im interested as long as it isnt the changes-made.tar.gz that did not solve the off cradle shudown problem

this does not work for me:

while true; do
head -c 4 /dev/atmg > /dev/null
sleep 60
done

the log file is on 500 new usb devices, and i need to create a new image again

i also have kernel faults with the 7/37 ubuntu_root.lzma

and i am leery on wrecking a good unit to see if its my device just not liking the new nicktime kernel, seeing as i have a clean boot with the original one
a5it-8g debian-android-anoa
unknown
Archos Novice
Archos Novice
Posts: 13
Joined: Sat May 28, 2011 6:18 am

Re: debian - is it possible to have swap on the microsd

Post by unknown »

this does not work for me:

while true; do
head -c 4 /dev/atmg > /dev/null
sleep 60
done


ok, other question. did you try nicktimes ubuntu/meego rootfs? do you get device shutdown with these? because I do not.

Edit:

No, wait. do you get shutdowns with sde concept angstrom roofs?
penguinrepair
Archos User
Archos User
Posts: 97
Joined: Fri Apr 29, 2011 6:03 pm

Re: debian - is it possible to have swap on the microsd

Post by penguinrepair »

yes, but there are no modules in these images, i think the 2.6.35 version worked the best, but it disappeared, the modules from the ubuntu install dont work with this kernel either, and im having a very hard time complin anything from smokus, nicktime, and even archos sources... i'm taking another look at the older kernel, but those sources dont compile due to lack of usb

im trying to get debian in there to see why they aren't compling and possibly build the kernel natively and not in an emulator with a different kernel
a5it-8g debian-android-anoa
unknown
Archos Novice
Archos Novice
Posts: 13
Joined: Sat May 28, 2011 6:18 am

Re: debian - is it possible to have swap on the microsd

Post by unknown »

you don't make any sense. i just compiled nicktimes kernel, no problem there. now I download archos buildroot and give 2.6.27 a try.
penguinrepair
Archos User
Archos User
Posts: 97
Joined: Fri Apr 29, 2011 6:03 pm

Re: debian - is it possible to have swap on the microsd

Post by penguinrepair »

Edit:

No, wait. do you get shutdowns with sde concept angstrom roofs?


the sde rootfs doesnt support swap
ATMEGA USB CABLE ATTACHED
archos_needs_battery usb: 1 dcin:1
[BATTERY], usb: 1, dc_in: 1
module_type=1
enable_high_charging
kjournald starting. Commit interval 5 seconds
EXT3 FS on loop1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 2097152k swap on /dev/mmcblk0p1. Priority:-1 extents:1 across:2097152k


thank you "unknown" swap works in debian with the sde kernel

ok my bad, it does until i change kernels, ill try, its busy today, ill find out in about 4 hrs
thank you, too bad the sde freezes so much, its compiling at this moment, big waste chrooting to get a reliable connection, if it stays alive with swap ill update you
a5it-8g debian-android-anoa
Post Reply

Return to “Open Development”