(1) script configuration
Ecosconfig new PC
Cdl_component cyg_hal_startup {
# Flavor: Data
# No user value, uncomment the following line to provide one.
User_value floppy (the modified location here)
# Value_source default
# Default value: Ram
# Legal values: "Ram" "Floppy" "Rom" "Grub"
....
}
# Default console channel.
#
Cdl_option cygnum_hal_virtual_vector_console_channel_default {
# Flavor: Data
# No user value, uncomment the following line to provide one.
User_value 2 (here the modified location)
# Value_source default
# Default value: 0
# Legal values: 0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
# Cygnum_hal_virtual_vector_comm_channels = 3
# The following properties are affected by this value
# Option cygnum_hal_virtual_vector_console_channel
# Defaultvalue: ygnum_hal_virtual_vector_lele_channel_default (the modified location here)
};
Ecosconfig tree
Make
Hello. c In the copy ecos-3.0 source file
CP ../ecos-3.0/examples/Hello. C ./
Compile hello. c
I386-elf-gcc-g-d_ecos-I./install/include hello. C-L./install/lib-ttarget. LD-nostdlib-O hello
I386-elf-objcopy-O binary hello. Bin
Generate a floppy Image
Dd Conv = sync if = Hello. bin of = Hello. Sort BS = 1440 K