Author Topic: A Clean, Fresh, Configured Eabi Rootfs Tarball  (Read 164411 times)

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #240 on: March 30, 2008, 07:21:37 am »
Quote from: ZDevil
...
Things already done:
...
7) Some tweaks to reduce disk writing (esp. for flash disks)

That's really great for my C1k, maybe it speeds things up a little bit?

Quote from: ZDevil
...
Things to be done (any help greatly appreciated!):
1) bluetooth
2) WPA support
3) automount SD/CF cards

So what's up with bluetooth? Some time ago i managed to sync my phone contacts with opensync and evolution by bluetooth. Maybe i can help?
C1000, 2.6.24-yonggun, Debian EABI

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #241 on: March 30, 2008, 07:27:47 am »
Quote from: LinuxGadget
So what's up with bluetooth? Some time ago i managed to sync my phone contacts with opensync and evolution by bluetooth. Maybe i can help?

Yes, Please do! Thanks!

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #242 on: March 30, 2008, 11:07:57 am »
Want to install Debian to my internal 6GB microdrive.

So, extracted the tarball and modules file on ext3 formatted SD card using another computer. Seems OK,

Meanwhile, using fdisk I formatted my internal microdrive into 2 partitions; large ext3 partition (hda1) and a small swap partition (hda2).

Then I formatted the hda1 partition using
Code: [Select]
mke2fs -j /dev/hda1.

So, now some questions please to help minimize my making mistakes....

1) I did not format the hda2 swap partition. Do I need to do that?

2) Do I need to mount the hda1/hda2 partitions before doing rest of install? If so, mount to?

Instructions say
Quote
Step 3:
Edit /etc/fstab and assign the correct mount points to the root partition and the swap partition.
The default is set to boot from the internal drive.
Just comment the lines for /dev/hdaX and uncomment the lines for /dev/mmcblk0pX if debian boots from SD.

However, I just looked at '/etc/fstab' file on SD card. It shows the following:

Code: [Select]
/dev/root          /               ext2      rw                          1  1
/dev/shm          /tmp         tmpfs    size=16M                 1  2
/dev/mmcda1   /mnt/card  auto      noauto, owner          0  0
none               /dev/pts     devpts   gid=5, modes=620   0  0


So, this is a lot different than what instructions say I'll see.....


3) Then do I need to copy over all the files from SD card to internal microdrive in order to install it there or can I install to microdrive using files on SD? What would be best way?


Appreciate all the help!

Thanks,

Mark
« Last Edit: March 30, 2008, 11:23:23 am by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #243 on: March 30, 2008, 11:19:54 am »
A suggestion of partitioning of microdrive: /dev/hda1 = swap partition; /dev/hda2 = root partition
Reason: swap partition is accessed faster in the beginning of the drive. (Flash disks don't seem to have this issue)

Swap partition: you have to do: mkswap /dev/hda1 (or /dev/hda2)

"Installation" of the rootfs: Just copy/extract the content of the rootfs tarball to the microdrive partition. Make sure that your kernel matches the partition. So if your rootfs is in /dev/hda1, use yonggun's hda1 kernel, and so is hda2.
« Last Edit: March 30, 2008, 11:20:24 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #244 on: March 30, 2008, 11:29:04 am »
About /etc/fstab:
Change to this:
Code: [Select]
/dev/hda2    /     ext3   rw,noatime      1  1
/dev/hda1    /none  swap  sw                0  0
proc         /proc   proc  defaults         0  0
sysfs        /sys    sysfs  defaults        0  0
/dev/shm     /tmp   tmpfs  size=16M         1  2
« Last Edit: March 30, 2008, 11:32:21 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #245 on: March 30, 2008, 12:58:44 pm »
Quote from: ZDevil
A suggestion of partitioning of microdrive: /dev/hda1 = swap partition; /dev/hda2 = root partition
Reason: swap partition is accessed faster in the beginning of the drive. (Flash disks don't seem to have this issue)

Swap partition: you have to do: mkswap /dev/hda1 (or /dev/hda2)

"Installation" of the rootfs: Just copy/extract the content of the rootfs tarball to the microdrive partition. Make sure that your kernel matches the partition. So if your rootfs is in /dev/hda1, use yonggun's hda1 kernel, and so is hda2.

Thanks, ZDevil!

OK, re-did my microdrive as you suggested.... think I'm getting close now to getting install working...

Edited fstab as you suggested... (however, when I reopened fstab in vi, this time it looked like the way it was mentioned in instructions, so was OK, weird....).

When I tried to copy over tarball contents to microdrive, it couldn't do it, said there wasn't room....
Now, I realize that I made a mistake by trying to mount hda2 per criteria in fstab, as it was trying to copy file to root, but this is the small area in the linux emergency mode....

So, now, I need to mount hda2 properly to copy files over to it using cp -R /mnt/card /mnt/???

What is the right mount point for hda2 in order to be able to copy the files over it?

Do I need to do the same thing now for hda1, the swap partition??

Also, regarding yonggun's kernel, I downloaded the hda1 one and renamed it to zImage.bin as in instructions...so, the only other Sharp bootloader files on that webpage were for mmcdablk0p1 and mmcdablk0p2....none for hda2. So, is this OK to use zImage.bin that I downloaded?

Thanks,
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #246 on: March 30, 2008, 01:06:54 pm »
Follow the first post of this thread: https://www.oesf.org/forum/index.php?showtopic=25029

I made a mistake about the /etc/fstab. You don't need the line for tmpfs (i.e. the last line in my previous post).

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #247 on: March 30, 2008, 01:11:44 pm »
Quote from: ZDevil
Follow the first post of this thread: https://www.oesf.org/forum/index.php?showtopic=25029

I'm trying, ZDevil, I'm trying....

 

But, don't I need to copy over the files from my SD card to my internal drive before flashing kernel?? Or are saying that I can install those files from SD card to microdrive during install or later??

If I need to copy files over now, then I need to know what is the proper way to mount hda2 from commant prompt...


Quote
I made a mistake about the /etc/fstab. You don't need the line for tmpfs (i.e. the last line in my previous post).

Oh, OK....

Thanks!
« Last Edit: March 30, 2008, 01:16:58 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #248 on: March 30, 2008, 01:20:03 pm »
mkdir /mnt/cf  (the name of the mount point doesn't matter)
mount -t ext3 /dev/hda2 /mnt/cf

Ready your root partition and rootfs before flashing the kernel.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #249 on: March 30, 2008, 02:10:15 pm »
Quote from: ZDevil
mkdir /mnt/cf  (the name of the mount point doesn't matter)
mount -t ext3 /dev/hda2 /mnt/cf

Right, ZDevil....mounted OK now....


Quote
Ready your root partition and rootfs before flashing the kernel.

If by this you mean copy over the extracted tarball and module files to root level of hda2 then that is what I'm doing now on Z..... given the size of the files, I think it will take some time to complete copying all the files...

THANKS again for all your help. Truly appreciate it!!!!

 

UPDATE: Just tried flashing and it says error message something like :

Code: [Select]
  
Zaurus SD Updater
/mnt/card/$UPDATE_SHELL not found

So, something is not ready yet....

 
« Last Edit: March 30, 2008, 02:39:19 pm by ArchiMark »
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #250 on: March 30, 2008, 02:43:31 pm »
Which partition is your rootfs in?
If it is /dev/hda1, flash the hda1 yonggun kernel.
If it is /dev/hda2, flash the hda2 yonggun kernel.
Use the "updater.sh" attached in the first post.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #251 on: March 30, 2008, 02:45:04 pm »
Quote from: ZDevil
Which partition is your rootfs in?
If it is /dev/hda1, flash the hda1 yonggun kernel.
If it is /dev/hda2, flash the hda2 yonggun kernel.
Use the "updater.sh" attached in the first post.

rootfs is in hda2....but as mentioned before, I didn't see any hda2 kernel on yonggun's webpage, just hda1 and the others for mmcda....
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #252 on: March 30, 2008, 02:47:38 pm »


My bad!! Sorry for that. Here it is: http://yonggun.tistory.com/68

Now go correct the post ...
« Last Edit: March 30, 2008, 02:59:03 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #253 on: March 30, 2008, 04:40:55 pm »
Quote from: ZDevil


My bad!! Sorry for that. Here it is: http://yonggun.tistory.com/68

Now go correct the post ...

OK, no problem.... except how do I now find and erase all the modules that I already extracted so that I can replace them with the ones from the new link???

 
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
A Clean, Fresh, Configured Eabi Rootfs Tarball
« Reply #254 on: March 30, 2008, 04:46:53 pm »
You don't have to remove the older kernel modules. Just leave them there and extract the new one to the root of the root partition.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]