Hello
I'm just beginning in open WRT dev ..
I used openwrt or dd-wrt for now with the ''basic'' stuff and it was perfect up to now ...
I started to work on the dev and installed the Imagebuilder wich work very good ..i created few images ..everything correct ..
Now, I solvered an SD card on my WRT54Gl .. and as it s explained, I need to modify some options ...
I download the sources ( is it the correct link ? http://downloads.openwrt.org/whiterussi … c6.tar.bz2 )
I uncompress the file ..etc..everything seems ok ...
but now, I need to change some stuff in the kernel config ..but impossible to find the file which is mentionned ???
from another hand, it says thta I must run ''menuconfig" in buildroot/build_mipsel/linux
I can t find this directory either the file menuconfig in all the files I unpacked ???
Can someone tell me what I missed ? so I need to add some files ?
from another hand , I search on this site or on google, I was not able to find a tutorial for the ''openwrt beginner dev', if you have some ..
Thanks in advance !
Topic: newbie question - creation of a full dev env - some files are missing
The content of this topic has been archived on 11 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
I'd recommend you are doing a default build for the first time. See the Setup a development environment for OpenWrt with the VMware Player thread. When the build finished you can compile the mmc driver.
You can use the driver (mmc.c) and the Makefile directly from http://kiel.kool.dk/.
The kernel config file is in target/linux/linux-2.4/config/brcm
(Last edited by forum2006 on 6 Dec 2006, 22:39)
ok thanks , I will start with this !
If you patch the buildroot to add MSDOS filesystem support you don't have to mess with the kernel config at all. Everything can be done whithin menuconfig then.
Patch to add MSDOS filesystem support to WhiteRussian buildroot (patch -p0 < add-msdos-fs-support.patch)
In menuconfig -> Kernel Configuration / Device Support ->
- VFAT filesystem support (fat.o, vfat.o) - creates the kmod-vfat package
- MSDOS filesystem support (msdos.o) - creates the kmod-msdos package
After the build finished download mmc.c and the Makefile for the MMC driver. Edit the mmc Makefile and mmc.c and run make. That's it
(Last edited by forum2006 on 7 Dec 2006, 21:04)
hello
just a quick update
I found my 1st problem : harddrive hardware problem ... that's why I had some problem and I was not able to find some files ...they were not extracted!
I changed the disk, use your tutorial for seting up the dev env... evrything for now goes well, I will wait the the end of 1st compil without problems, and then after I will do some chnages
I wil post updates
thanks for your help !!!
(Last edited by smalldragoon on 15 Dec 2006, 16:56)
Hello
seems that my story is not finnished...
when I compile, I have
"
-6.3/gdb/ada-lex.l && \
rm -f ada-lex.c.new && \
sed -e '/extern.*malloc/d' \
-e '/extern.*realloc/d' \
-e '/extern.*free/d' \
-e '/include.*malloc.h/d' \
-e 's/\([^x]\)malloc/\1xmalloc/g' \
-e 's/\([^x]\)realloc/\1xrealloc/g' \
-e 's/yy_flex_xrealloc/yyxrealloc/g' \
< ada-lex.c > ada-lex.c.new && \
rm -f ada-lex.c && \
mv ada-lex.c.new ada-lex.c; \
elif [ -f ada-lex.c ]; then \
echo "Warning: ada-lex.c older than ada-lex.l and flex not available."; \
else \
echo "ada-lex.c missing and flex not available."; \
false; \
fi
ada-lex.c missing and flex not available.
make[4]: *** [ada-lex.c] Error 1
make[4]: Leaving directory `/usr/openwrt/SOURCE/whiterussian/toolchain_build_mipsel/gdbclient-6.3/gdb'
make[3]: *** [all-gdb] Error 2
make[3]: Leaving directory `/usr/openwrt/SOURCE/whiterussian/toolchain_build_mipsel/gdbclient-6.3'
make[2]: *** [/usr/openwrt/SOURCE/whiterussian/toolchain_build_mipsel/gdbclient-6.3/gdb/gdb] Error 2
make[2]: Leaving directory `/usr/openwrt/SOURCE/whiterussian/toolchain/gdb'
make[1]: *** [gdb-install] Error 2
make[1]: Leaving directory `/usr/openwrt/SOURCE/whiterussian/toolchain'
make: *** [toolchain/install] Error 2
"
any idea?? I check and everything seems ok with lex & yacc ?
Follow these two guides:
1. Setup a development environment for OpenWrt with the VMware Player
2. [Howto] Compile the MMC driver (module) for the SD card mod
I'm sorry, I can't do more for you.
(Last edited by forum2006 on 17 Dec 2006, 20:30)
do you actually have flex and bison, or literal lex and yacc? The FAQ at least says flex and bison specifically.
4.2. Requirements for compiling OpenWrt
I am new to openwrt development, and so I am not an expert with the openwrt build process specifically. But that error message sounds like the build tools can't find flex. And I know there are some feature differences (flex has some extensions last time I was working in detail with it).
good luck!
Hello
so be be sure that my locla ubuntu was ccorrect , I try to follow the complete tutorial ...
everything compile
so I will check your link ..thanks ...
Now
I have done al the changes
when I check my Dmesg I have
mmc Hardware init
mmc Card init
mmc Card init *1*
mmc Card init *2*
Size = 501248, hardsectsize = 512, sectors = 1002496
Partition check:
mmca: p1
which seems to be ok
I check insmod msdos, vfat , fat ..etc..everything is ok :
Using /lib/modules/2.4.30/vfat.o
insmod: A module named vfat already exists
Using /lib/modules/2.4.30/fat.o
insmod: A module named fat already exists
Using /lib/modules/2.4.30/msdos.o
insmod: A module named msdos already exists
But when I try :
mount /dev/mmc/disc0/part1 /mnt -tmsdos or
mount /dev/mmc/disc0/part1 /mnt
I have
this error :
mount: Mounting /dev/mmc/disc0/part1 on /mnt failed: Invalid argument
for me it s ok no ?
Thanks !
Mounting a USB stick with a MSDOS filesystem on it works perfect for me. Even hotplug mounts it automaticalla after a reboot.
root@OpenWrt:~# mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/disc0_1/ -tmsdos
root@OpenWrt:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 1.0M 1.0M 0 100% /rom
none 14.9M 16.0k 14.9M 0% /tmp
/dev/mtdblock/4 2.2M 676.0k 1.5M 30% /jffs
/jffs 1.0M 1.0M 0 100% /
/dev/scsi/host0/bus0/target0/lun0/part1 487.7M 3.7M 484.0M 1% /mnt/disc0_1
root@OpenWrt:~#
So, make sure you are using the correct path in /dev/mmc/... and have the SD card formatted correctly. Also check if the /mnt directory exists. Maybe use a subdirectory under /mnt.
(Last edited by forum2006 on 23 Dec 2006, 17:30)
If someone donate a WRT54GL to me I'll write up a complete howto for the MMC driver.
Write a private message to me if you like to donate a WRT54GL or money.
(Last edited by forum2006 on 24 Dec 2006, 14:45)
Hello
So Finalyy, I try to follow exactly the tutorial wihtout using my own PC but the Vmware ...
now everthing works ...
all compilations are ok , the problem with the SD card was I think that I killed the 1st one soldering it ..
Thanks to all for your help, I have other questions, but I will create new post as it s not at all the same problem .
Enjoy the end of year
Thanks a lot for the help !
Hello all
After many tests and searches , everything is ok ...
I just have a last question( I think )
From one hand, I have my building env where I can compile the os ( with fat, Vfat .etc.. modules ...)
From another hand, I have the Image builder
as Image builder is using a packge for the software, how can I ''mix'' the 2 solutions
I though to one ( which is to take all the .o I need on the image builder in the file sections, but I guess there is a cleaner method !)
Thanks!
See the IB howto 3.4 Custom files in the Wiki.
The discussion might have continued from here.