Commit Graph

56 Commits

Author SHA1 Message Date
Amit Mahajan
8d38c8ede6 Corrected the PC value for non linux containers. 2009-10-21 17:02:03 +05:30
Amit Mahajan
8bb1069553 Adding mechanism to have differnt run and load address for pagers 2009-10-21 16:45:06 +05:30
Amit Mahajan
be9b629836 Corrected the way to find config.h's path 2009-10-21 16:42:32 +05:30
Amit Mahajan
93c7a909b1 CPUID and ARCHID taking at runtime from config.h 2009-10-21 16:42:32 +05:30
Amit Mahajan
4bbf9adb86 Passing PHYS_OFFSET as load address of linux elf 2009-10-21 16:42:31 +05:30
Amit Mahajan
084ac1da22 Taking CPUID and ARCHID for linux from build system 2009-10-21 16:42:31 +05:30
Amit Mahajan
e264544c00 Taking Linux's Rootfs address from user 2009-10-21 16:42:31 +05:30
Amit Mahajan
86c3a7c176 Added LinuxUpdateParam class for passing parameters to linux 2009-10-21 16:41:28 +05:30
Amit Mahajan
61a0d5b60f Added support for ATAGS for linux kernel 2009-10-21 16:38:57 +05:30
Amit Mahajan
2625d5e871 Encapsulating Linux Image binary in elf 2009-10-21 16:38:57 +05:30
Bahadir Balban
61e41b5fed Removed memory access permissions from configuration for simplicity
Access permission bits are required eventually but currently are
not a critical concern and yet they complicate configuration. For
sake of simplicity they are removed to be added later on when
absolutely needed.
2009-10-20 21:16:04 +03:00
Bahadir Balban
f3edb21fb5 Further enhancements to configuration simplification 2009-10-20 20:05:42 +03:00
Bahadir Balban
b85d4202ce Significant cleanup to how configuration files are generated.
Default autogenerated version works. Need to sort out config options
2009-10-20 19:35:02 +03:00
Bahadir Balban
a3a90530df Fixed a few minor issues. 2009-10-18 16:16:32 +03:00
Bahadir Balban
a8a4b5ce6c Removed unnecessary print messages from few build scripts 2009-10-09 00:58:07 +03:00
Bahadir Balban
7e38e70f93 Added conditional configuration flag -c to build.py 2009-10-08 19:07:59 +03:00
Bahadir Balban
8919c4bfa5 CML2 suppress bug caused number of containers to be misconfigured.
Now worked around.

CML2 seems to forget supressing derived symbols that are derived from
suppressed symbols. (Expected behaviour) This caused the configuration parser
to recognize the illegally visible symbols to be from those containers.

Now worked around by adding the extra check for CONFIG_CONTAINERS have been parsed.

A real solution requires fixing CML2 symbol visibility function.
2009-10-05 22:33:29 +03:00
Bahadir Balban
ed9199a972 Added parsing of memory region capability bits. 2009-10-03 15:34:39 +03:00
Bahadir Balban
f3bca7ba00 Created a way to generate 0 and 1's while retaining Yes and No in CML
CML boolean type compiles into #define and #undefs.
This is not useful for capabilities since a value of 0 or 1 can be
used automatically for setting or unsetting bits in permission words.

Meanwhile using an integer type with 0 - 1 range has a worse usability
experience than the boolean Y, N.

Also moved parsing of container.template.cml to newer Python argument
parsing format.
2009-10-02 20:03:25 +03:00
Bahadir Balban
d3b96ca646 Moved kernel autogeneration function to a meaningful directory
Als updated parse options to save oldconfig file when -r option is used.
2009-10-02 15:22:52 +03:00
Bahadir Balban
17f7207996 Moved VIRTMEM PHYSMEM start/end symbols into relevant capabilities menu. 2009-10-01 19:34:26 +03:00
Bahadir Balban
e6439517e9 Introducing virtual/physical memory permission capabilities. Half-way done. 2009-10-01 19:09:08 +03:00
Bora Sahin
afaa1d03a8 A few changes to allow development on conts/test directory.
Now, bare containers get their files from conts/bare_src instead of conts/test.
test directory will be used for the next generation test programs.
Also bare_src is tracked by git now with a minor mod to .gitignore.
2009-10-01 15:43:46 +03:00
Bahadir Balban
b642fc5cd3 Updated container configuration cml for posix container 2009-10-01 00:21:21 +03:00
Bahadir Balban
4e7d8ddc25 Integrated building of posix images as a container
Issues:
Some intermediate .elf files should not go into final container image.
Perhaps those will be built with different or no extension
2009-09-30 19:04:35 +03:00
Bahadir Balban
748d6734c3 We now have a correctly compiling (but untested) posix container build. 2009-09-30 18:37:51 +03:00
Bahadir Balban
73225a0119 Bootdesc building working 2009-09-30 16:31:34 +03:00
Bahadir Balban
d661924860 Updated number of args to cml generator template. 2009-09-28 14:49:50 +03:00
Bahadir Balban
fb1de576cb Fixed hexadecimal conversions where output has the most significant bit as 1
If hex converted had a 1 in the MSB, an L was appended to the number.
The conversion routine removes this.
2009-09-28 14:04:19 +03:00
Bahadir Balban
1c2eaae8b3 Created container.h and added more comprehensive hello world
Added a per-container container.h that inclues useful definitions.
Hello world now is in a separate file not to modify main too often.
hello world now prints container name and id.
2009-09-27 18:35:38 +03:00
Bahadir Balban
aae84b5eb3 Fixed updating of reconfigured bare projects
Reconfigured bare projects now update with config data
correctly. A path issue was fixed.
2009-09-26 21:52:29 +03:00
Bahadir Balban
10d2d7269f CML2 rule file is autogenerated from arm.cml and the containers template
Container rules are too many and repetitive for each container. With this
change, the cml file is autogenerated from a container template cml and
the architecture cml, e.g. arm.cml. -c option determines the number of
containers. See build.py -h for more.
2009-09-26 16:39:04 +03:00
Bahadir Balban
37507c006a All address parameters in class Container converted to integers 2009-09-24 19:07:29 +03:00
Bahadir Balban
7d1719e080 Updated generate kernel info script to include all other standard capabilities.
Currently only virtmem and physmem capabilities are configurable.
	modified:   scripts/conts/generate_kernel_cinfo.py
2009-09-23 15:17:50 +03:00
Bahadir Balban
9bd265c7ec Cannot straightforwardly derive symbols conditionally from multiple sources in CML2
Ternary expressions on derive statements cause type errors (CML2 Bug?).
	modified:   config/cml/arm.cml
	modified:   scripts/conts/generate_kernel_cinfo.py
2009-09-23 12:57:43 +03:00
Bahadir Balban
9bdd951cae Integrated cinfo generation to configure.py 2009-09-22 22:01:25 +03:00
Bahadir Balban
7c84aefecc Added multiple physical and virtual memory regions to configuration and parsing 2009-09-22 15:08:06 +03:00
Bahadir Balban
db494f244b Linux build is commented in 2009-09-21 14:03:36 +03:00
Bahadir Balban
b2c93979ba Packing of bare container done. 2009-09-19 20:53:29 +03:00
Bahadir Balban
6c54c3f059 Added default linker script input file for bare containers 2009-09-19 12:37:59 +03:00
Bahadir Balban
19a84b02da Test program for bare repos now links with libl4 and libc.
The userspace bare libc has been re-added to the repo.
2009-09-19 12:30:37 +03:00
Bahadir Balban
e4f80c4579 Added generation of .container informative file for bare containers 2009-09-19 00:01:30 +03:00
Bahadir Balban
99ebb7c50d Bare container correctly autogenerates from `test' sources and builds.
new file:   conts/test/SConstruct
	new file:   conts/test/container.c
	new file:   conts/test/include/linker.lds
	new file:   conts/test/include/test.h
	new file:   conts/test/main.c
	new file:   conts/test/src/test.c
	modified:   scripts/bare/bare_generator.py
2009-09-18 18:49:56 +03:00
Bahadir Balban
0d2ec30f9c Added functionality to create a bare container 2009-09-18 17:47:37 +03:00
Bahadir Balban
f305d443c3 Added forgotten files and fixed minor build errors 2009-09-17 18:10:38 +03:00
Bahadir Balban
6aac5332ae final.axf building from top-level build.py including containers 2009-09-17 12:49:49 +03:00
Bahadir Balban
6b899ebf15 Added untracked scripts. Added script-location relative module import 2009-09-17 11:28:43 +03:00
Bahadir Balban
b2531dc725 Created images.S for loader with a script so that kernel.elf and containers.elf are not hard-coded 2009-09-17 11:14:26 +03:00
Bahadir Balban
136bdcdc54 Minor fixes to loader build scripts 2009-09-16 19:40:31 +03:00
Bahadir Balban
0f1dc5a982 Added generation of ksyms.S to loader SConscript as a call to generate_break_virtual
File creation and cleanup works correctly.
	modified:   loader/SConscript
	modified:   scripts/loader/generate_break_virtual.py
2009-09-16 19:01:57 +03:00