This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eCos, qemu and rtlk8139


On 2009-03-09, Bessemer <bessemer@gmail.com> wrote:

> I've got it working now (at least, I can ping the qemu
> internal server from the redboot prompt) The problem was that
> I was making changes via ecosconfig but that wasn't updating
> the final redboot.bin product (which I _finally_ realised when
> I did an ls -l) It seems that 'ecosconfig tree && make clean
> && make' is not sufficient to force a complete rebuild.

I think we've all tripped over that one.  I usually use a shell
script to rebuild after I've changed configuration:

------------------------------buildecos.sh------------------------------
#!/bin/bash
set -x
export ECOS_REPOSITORY=$PWD/ecos-src
rm -rf ecos-build
mkdir ecos-build
cd ecos-build
../newTree.sh && make

-----------------------------------8<-----------------------------------


-------------------------------newTree.sh-------------------------------
#!/bin/bash

ecosconfig new <whatever>
ecosconfig remove CYGPKG_IO_SERIAL 
ecosconfig add CYGPKG_IO_NSERIAL
ecosconfig add CYGPKG_IO_WATCHDOG CYGPKG_DEVICES_WATCHDOG_DALLAS_DS1501

cat >.tmp$$.cdl <<EOF
cdl_option CYGPKG_IO_NFILE {user_value 256}
cdl_option CYGNUM_FILEIO_NFILE {user_value 256}
cdl_option CYGNUM_FILEIO_NFD {user_value 256}
cdl_option CYGPKG_NET_MAXSOCKETS {user_value 256}
cdl_component CYGSEM_KERNEL_SCHED_TIMESLICE {user_value 0}

# set IP configuration for test/devel purposes.  These settings
# are ignored by real applications
cdl_component CYGHWR_NET_DRIVER_ETH0_BOOTP        {user_value 0}
cdl_component CYGHWR_NET_DRIVER_ETH0_DHCP         {user_value 0}
cdl_component CYGHWR_NET_DRIVER_ETH0_ADDRS        {user_value 1}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_IP        {user_value "10.0.0.101"}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_NETMASK   {user_value "255.0.0.0"}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_BROADCAST {user_value "10.255.255.255"}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_GATEWAY   {user_value "10.0.0.1"}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_SERVER    {user_value "10.0.0.1"}
EOF

cat .tmp$$.cdl
ecosconfig import .tmp$$.cdl
rm -f .tmp$$.cdl
ecosconfig tree
-----------------------------------8<-----------------------------------

-- 
Grant Edwards                   grante             Yow! FROZEN ENTREES may
                                  at               be flung by members of
                               visi.com            opposing SWANSON SECTS ...


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]