Author Topic: Help the n00b - Whats the diff between a ROM and a Kernel?  (Read 3497 times)

MatiasDuarte

  • Newbie
  • *
  • Posts: 9
    • View Profile
Help the n00b - Whats the diff between a ROM and a Kernel?
« on: April 17, 2004, 12:15:13 pm »
Hi all, I just recently recieved a C700 as a gift. It came with a power supply and nothing else. I\'ve managed to switch the language to English, but it\'s a really old setup. The ROM says it\'s version 1.00 JP. The Kernel says it\'s 2.4.18-rmk7-pxa3-embedix.

I see a lot of talk about different ROMs and different Kernels, but being totally ignorant I\'m a touch lost. Is the ROM an installation which includes the Kernel? It seems I can patch the Kernel without installing a new ROM - is that right?

I\'m very interested in any sytem upgrades that would improve performance and allow me to use the pressure sensitivity feature in paint programs. What\'s the easiest way to get such a system upgrade? Is there a single ROM I can just flash and have it all get installed at once?

Which ROM should I choose for maximumn compatibility with exsisting apps?

Actually I\'m only interested in painting and multimedia playback on the Zaurus (I\'ll just use my Sidekick for text editing, email, web browsing etc.). I\'d love to just run a paint program and a MP3 and a video player on the Zaurus - which ROM would be best suited for that?

Any advice would be much appreciated!
Sketch Pad, Media Player : Sharp C700 - Cacko 1.21, 256MB CF Card,
Wireless Email, AIM, Browser, SSH and Phone : Danger color hiptop
Game Deck : Nintendo Gameboy SP

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
Help the n00b - Whats the diff between a ROM and a Kernel?
« Reply #1 on: April 17, 2004, 03:10:13 pm »
]]] I\'m a touch lost. Is the ROM an installation which includes the Kernel?

Yes.  The ROM is the entire working system.  The Linux kernel is the core of the operating system which acts as a mediator for your programs and hardware.   I haven\'t yet tried to upgrade just the Kernel of a ROM, so couldn\'t be much help there.
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Help the n00b - Whats the diff between a ROM and a Kernel?
« Reply #2 on: April 17, 2004, 08:44:38 pm »
Upgrading just a kernel is the same process as upgrading a ROM.

Note: a ROM does not always contain a kernel.
Usually the kernel is a seperate file (zImage or zImage.bin) downloaded with the Rom and updater script (Cacko is a good example of this) while tkcRom only had the rom.

To upgrade just the kernel put the updater.sh and the kernel file on your SD/CF card without the rom image and follow the normal procedure for lfashing - will be much faster as the kernel is usually only about 1Mb as apposed to 20Mb+ for a ROM.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

ScottYelich

  • Hero Member
  • *****
  • Posts: 992
    • View Profile
    • http://www.zaurususergroup.com/modules.php?opmodload&namephpWiki&filei
Help the n00b - Whats the diff between a ROM and a Kernel?
« Reply #3 on: April 18, 2004, 09:38:18 am »
it\'s a bit misleading... sharp is destroying terminology.

ROM is usually \"Read Only Memory\" but in sharp terms, it basically means \"operating system\"
the \"operating system\" is stored on \"flash ram\" or \"flash rom\" or whatever... so, this is probably
where the ROM = OS comes from.

A kernel is what some people would call the operating system -- where as the \"ROM\" OS is stuff
like applications -- but we have microsh!t to thank for destroying the meaning of \"operating
system\" in the name of \"innovation\" and monopolistic practices.

Basically, you can think of it as just this... the \"ROM\" = the base installed application suite
and is not overly tied to the kernel.  The kernel is the primary application, or lowest level
of the operating system that allows other applications/programs such as device drivers
and word processors to run.

There are many docs about flashing on the Z -- the thing there is that when you \"flash,\"
you are going to be writing to the flash ram/rom area... but, you can write a kernel, OS
or both.  So, it shouldn\'t be thought of that flashing equals one or the other, as it can
be either or both.

Scott

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Help the n00b - Whats the diff between a ROM and a Kernel?
« Reply #4 on: April 18, 2004, 09:51:19 am »
Note that the kernel requires modules to operate and these modules are in the filesystem portion of the flash image. Therefore you can\'t just mix and match kernels and filesystem images.


Simon
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

MatiasDuarte

  • Newbie
  • *
  • Posts: 9
    • View Profile
Help the n00b - Whats the diff between a ROM and a Kernel?
« Reply #5 on: April 18, 2004, 01:04:34 pm »
Thanks guys, that clarifies a lot!

Many of the online docs and posts talk about using a new \"ROM\" to update the OS. Therefore these ROMs could either be:
- replacements of the higher level OS modules (like the window manager) and what are usually seen on the PC as the installed applications (web browser, etc).
- the above plus kernel replacement which improves the very lowest level functionality of the system.

Is that about right?
Sketch Pad, Media Player : Sharp C700 - Cacko 1.21, 256MB CF Card,
Wireless Email, AIM, Browser, SSH and Phone : Danger color hiptop
Game Deck : Nintendo Gameboy SP

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Help the n00b - Whats the diff between a ROM and a Kernel?
« Reply #6 on: April 18, 2004, 01:25:34 pm »
ROM basically means a \'ROM image\'

Normally people talking about ROMs mean a kernel and a fileysystem image together.

If you replace the kernel you almost always need to replace the fileysystem image (because of the modules) unless the filesystem is writable and you can add the modules before you flash the new kernel (or if the kernel is basically the same one with extra options you may get away with it).

The filesystem image contains amongst other things:
kernel modules
basic libs and programs (like libc, sh/bash) which pretty much all Linux programs need (found in /bin, /lib & /sbin)
slightly less basic libs and programs - tar, less, ls, more (but still fairly essential, found in /usr/bin, usr/lib, usr/sbin)
GUI interface libs, programs and other odds and sods - Qtopia/Opie/X11 & Window manager/etc.
Other (non essential) applications (opera browser, hancom suite).

Hope fully that makes some sense.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

mielikki

  • Newbie
  • *
  • Posts: 13
    • View Profile
Help the n00b - Whats the diff between a ROM and a Kernel?
« Reply #7 on: April 18, 2004, 07:22:35 pm »
My 5600 has (according to the manual) 512KB ROM, 64MB flash memory, 32 MB RAM.

What\'s in the 512KB ROM? Is that where the maintanence menu is? Is that really ROM or is it some sort of PROM? When we \"flash the ROM\" are we changing anything in that ROM or just in the flash memory?

The flash memory, from what I have read is broken into 2 partitions? One that is read-only for the kernel and \"built-in\" apps. (I guessing that is the stuff that gets replaced when we \"flash the ROM\".) That\'s the one lardman discussed above? The other is read-write and is where we as users install applications and save documents... (Although maybe that explanation is only true for the stock kernel?)

I\'m a n00b, too, so what I have said here is what I understand so far, but I may be way off base.
handheld: SL-5600 PXA250, stock 1.21 ROM and kernel
cards: Viking SD512M SD memory card, Linksys WCF12 wifi card
desktop: gentoo kernel 2.4.25, gcc 3.3.2