Hi all,
I have some problem on LinuxBios compilation, some people tried to help me, but for now I am always blocked. This is all of my step for compil :
I use buildtarget like this :
in ../targets/ :
$ ./buildtarget advantech/pcm-5823
see file log1 in Archive.tar.gz
cd advantech/pcm-5823/pcm-5823/
$ export LC_ALL=en_US $ make
see file log2 in Archive.tar.gz
The log file contains the complete compilation logs.
If you have any question on my configuration, ask me ;)
in the Archive.tar.gz you have all of my config file
thank's for your help
regards
Ccases
PS : My mail server bug last week, and I have receive just a part of mail of the mailing list not all, and I don't know if my last mail as sent or not, sorry if it's a doubled mail.
Hi all,
I have an little question, the size of the chip (bios) is declare only in the ../targets/<mother>/<board>/Config.lb at the line ROM_IMAGE_SIZE, or is in other config file, because when y compil the size of my linuxbios.rom is 128ko , but my chip is an 256ko, and ROM_IMAGE_SIZE is déclare at 256*1024,
thank's by adavance for your help,
regards
Ccases
Hi all,
I have an little question, the size of the chip (bios) is declare only in the ../targets/<mother>/<board>/Config.lb at the line ROM_IMAGE_SIZE, or is in other config file, because when y compil the size of my linuxbios.rom is 128ko , but my chip is an 256ko, and ROM_IMAGE_SIZE is déclare at 256*1024,
thank's by adavance for your help,
regards
Ccases
-- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios
Sorry it's ROM_SIZE not ROM_IMAGE_SIZE everywhere
ccases@navista.fr wrote:
Hi all,
I have an little question, the size of the chip (bios) is declare only in the ../targets/<mother>/<board>/Config.lb at the line ROM_IMAGE_SIZE, or is in other config file, because when y compil the size of my linuxbios.rom is 128ko , but my chip is an 256ko, and ROM_IMAGE_SIZE is déclare at 256*1024,
thank's by adavance for your help,
regards
Ccases
-- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios
Sorry it's ROM_SIZE not ROM_IMAGE_SIZE everywhere
In the target Config.lb, you should have ROM_SIZE = 256*1024 (or you can calculate it out), which I see you have, and I've got ROM_IMAGE_SIZE = 0x10000. The options in Options.lb and Config.lb (in src/...) should, in theory, never have to be changed for a different flash part size. If you're only building a fallback image, you'll have to adjust FALLBACK_SIZE in Options.lb to be the size of the whole flash part (256*1024), and also modify failover.c to only boot the fallback image, is that maybe where the problem is?
-Corey
ccases@navista.fr wrote:
Hi all,
I have an little question, the size of the chip (bios) is declare only in the ../targets/<mother>/<board>/Config.lb at the line ROM_IMAGE_SIZE, or is in other config file, because when y compil the size of my linuxbios.rom is 128ko , but my chip is an 256ko, and ROM_IMAGE_SIZE is déclare at 256*1024,
thank's by adavance for your help,
regards
Ccases
-- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios
Sorry it's ROM_SIZE not ROM_IMAGE_SIZE everywhere
In the target Config.lb, you should have ROM_SIZE = 256*1024 (or you can calculate it out), which I see you have, and I've got ROM_IMAGE_SIZE = 0x10000. The options in Options.lb and Config.lb (in src/...) should, in theory, never have to be changed for a different flash part size. If you're only building a fallback image, you'll have to adjust FALLBACK_SIZE in Options.lb to be the size of the whole flash part (256*1024), and also modify failover.c to only boot the fallback image, is that maybe where the problem is?
-Corey
I use the fallback and the normal mode, if my chip has a size 256*1024, what size of FALLBACK_SIZE and ROM_IMAGE_SIZE I can choose, I have some difficulty to define the role of the ROM_IMAGE_SIZE, the ROM_SIZE define the size of the chip, the FALLBACK_SIZE define the size of the fallback mode, but the ROM_IMAGE_SIZE ??? I don't understand the goal of ROM_IMAGE_SIZE, if you have an better explaination that on the Web site, I would appreciate much.
Thanks by advance for your help.
regards
Ccases
I use the fallback and the normal mode, if my chip has a size 256*1024, what size of FALLBACK_SIZE and ROM_IMAGE_SIZE I can choose, I have some difficulty to define the role of the ROM_IMAGE_SIZE, the ROM_SIZE define the size of the chip, the FALLBACK_SIZE define the size of the fallback mode, but the ROM_IMAGE_SIZE ??? I don't understand the goal of ROM_IMAGE_SIZE, if you have an better explaination that on the Web site, I would appreciate much.
Just to make sure first, after changing anything in the config'lb or options.lb files, you have to re-run ./buildtarget to recreate the make files with the new values.
If I understand it right, this is pretty much how it works, and some reasonable values for a 256k flash part:
ROM_IMAGE_SIZE determines the amount of space for lb's fallback image to take up, 64kb (64*1024, or 0x10000). The minimum size of this is dependent on the code, I don't know how you'd find it out other than trial-and-error, but there must be a way.
FALLBACK_SIZE determines the space for the fallback lb image + the payload for the "fallback.rom", 128kb (128*1024, or 0x20000). This means 64kb for lb+64kb for the payload. This at minimum needs to be (obviously) the size of your built code + the size of your payload. Also, make sure your Options.lb contains "default HAVE_FALLBACK_BOOT=1".
ROM_IMAGE_SIZE again determines the size for the normal image's code, 64kb
ROM_SIZE determines the size of the whole chip, 256kb. LB then computes ROM_SIZE - FALLBACK_SIZE to get the size for the "normal.rom", which is the normal lb code + the payload again.
At the end, lb merges the fallback.rom(128k) and normal.rom (128k) to give you linuxbios.rom (256k).
There are some other options, like PAYLOAD_SIZE and ROM_SECTION_SIZE, these should be computed by your src/../Config.lb based on the other values. If you still have problems, grab the config.lb's and options.lb from the asus p2b and use the values in those, they build a 256k flash part for me just fine.
-Corey