--- Log opened Wed Sep 02 00:00:26 2015 | ||
latif | hi all... There is a silly error while trying to make "make defconfig" in linux folder.. It says that: net/Kconfig:80: can't open file "net/ipv4/Kconfig" ..an gets an error.. I am using or1k toolchain and latest linux folder from github... Anyone has an idea??? | 09:46 |
---|---|---|
latif | By the way, I have made export CROSS_COMPILE=or1k-elf- and export ARCH=openrisc. | 09:48 |
stekern | latif: try make or1ksim_defconfig | 10:00 |
latif | stekern: sorry, but the same error again!! | 10:23 |
stekern | latif: wait, I'll try | 10:38 |
latif | stekern: thanks a lot. By the way, I did not came across such an error before although I tried it many times. Another problem is that ; I am trying to boot linux on Atlys board. So I prepare a uImage from vmlinux file. Then by using uboot I load it to the atlys board. Then I make bootm 100000 to run kernel image.. It starts like; veryfing checksum..ok, loading kernel image..ok .. But then ,at that exactly, it stops running!! I could n | 10:43 |
stekern | at that point it jumps into the kernel | 10:44 |
stekern | or at least it should ;) | 10:44 |
latif | "at that point it jumps into the kernel" but, if so, it should print something on terminal, rigth? :) | 10:48 |
stekern | yeah, but that's pretty far into the boot | 10:52 |
stekern | so either the kernel hangs before first uart output, or it doesn't jump to the correct place | 10:53 |
olofk | latif: Does this mean that you've managed to boot from Flash now? :) | 10:55 |
stekern | latif: did a fresh checkout from the repo olofk mentioned and built it without problems | 11:11 |
latif | stekern: which repo?? I am using this repo riigth now ...https://github.com/openrisc/linux | 11:17 |
stekern | latif: exactly that | 11:17 |
latif | stekern: the error is the same again.. it says: net/Kconfig:80: can't open file "net/ipv4/Kconfig" | 11:19 |
stekern | try: make mrproper && make or1ksim_defconfig && make -j8 | 11:20 |
latif | stekern: ./scripts/Makefile.clean:14: drivers/net/ethernet/atheros/Makefile: No such file or directory make[4]: *** No rule to make target `drivers/net/ethernet/atheros/Makefile'. Stop. | 11:21 |
latif | this is a different error again | 11:21 |
stekern | try to checkout the tree again, yours seems broken | 11:21 |
latif | ok. let me download it again | 11:22 |
latif | olofk: Sorry. But I could not. I am using v2. I have made a simulation and on board (atlys) test for both version.. It seems that, for v3, if you write something to the wb_addr serialy, it makes silly things.. I mean, lets say firs instruction is "write 0x445 to r4" and then second instruciton is "write 0x798 to r5" , it makes the first successfully but not the same for second.!! So I think it is an error or something else about the m | 11:29 |
latif | stekern: Sorry. But I got the same error again and again. | 11:31 |
stekern | latif: don't know what to say, it works here(tm) | 11:32 |
latif | stekern: you just download and then make defconfig, thats all?? | 11:34 |
stekern | no, make or1ksim_defconfig | 11:34 |
latif | ok.. but I do the same exactly.. how it happens ?? | 11:35 |
stekern | git clone https://github.com/openrisc/linux | 11:36 |
stekern | cd linux | 11:36 |
stekern | export CROSS_COMPILE=or1k-elf- | 11:36 |
stekern | export ARCH=openrisc | 11:36 |
stekern | make or1ksim_defconfig | 11:36 |
stekern | make -j8 | 11:37 |
stekern | that was the exact commands I did | 11:37 |
latif | stekern: May be it comes comic but, I am doing the same... Ok I will do it again now.. | 11:37 |
latif | stekern. By the way.. what does -j8 means?? | 11:38 |
stekern | just to do a parallel build, it's not necessary | 11:39 |
latif | hmm.. after the last command a vmlinux file is created, can you please check the size of it?? | 11:40 |
stekern | -rwxrwxr-x 1 stefan stefan 11M Sep 2 14:11 vmlinux | 11:41 |
latif | As long as I know, the last command should convert the vmlinux to vmlinux.bin but why does not it do it?? | 11:42 |
latif | sorry about the last bad sentences :) | 11:42 |
latif | ok. should we convert it to vmlinux.bin before getting it to uImage file?? | 11:43 |
stekern | no, only vmlinux (elf) is produced by the linux build | 11:47 |
stekern | to get vmlinux.bin, do: or1k-elf-objcopy -O binary vmlinux vmlinux.bin | 11:47 |
latif | yeah I know. But do we need it before convert it to a uImage file..?? I will use it on ATLYS | 11:48 |
latif | I mean we should convert the vmlinux to vmlinux.bin rigth? If we want to use it on board... | 11:49 |
stekern | ah, yes, you'll need the .bin to create the uImage | 11:50 |
latif | stekern: I can not believe.. No error this time :) it is building now | 11:52 |
latif | Sometimes this work comes me so comic really :)) I am doing the same until the morningg.. just the difference is make defcong--make or1ksim_defconfig. I think, if you do something on linux file wrong, you should not use it again.. | 11:55 |
latif | or the error is about the download method maybee.. I was using normal download from git hub.. like download zip file.. | 11:56 |
latif | stekern: I have run linux kernel on simulator successfully. But it does not work on Atlys board. It stuck again as it did before..like; veryfing checksum..ok...loading kernel image..ok...then it stops running.! | 14:26 |
_franck__ | latif: did you check your devicetree ? | 14:56 |
latif | Do you mean atlys.dts file? | 15:01 |
latif | _franck_: I am using the dts file that is used in orpsocv3 project | 15:02 |
_franck__ | ok. Did you edit your linux configuration in order to use _this_ devicetree ? | 15:04 |
latif | Yes, of course | 15:04 |
latif | I did choose that in menuconfig phase | 15:04 |
_franck__ | ok great | 15:04 |
latif | What do you suggest me to do? | 15:05 |
_franck__ | well I have no more idea | 15:08 |
latif | franck: are you using atlys board?? if so, can you please send me the dts file for atlys | 15:10 |
_franck__ | no I don't. I have Altera DE1 and NEEK boards | 15:10 |
latif | Does anyone know how long it takes to boot linux after loading the kernel image from u-boot??? | 16:40 |
juliusb | <10 seconds? | 16:47 |
latif | julisb: I am having trouble with booting linux on atlys.. It stops running after loading image... I cannot solve the problem for a while... do you have an idea?? or can you send me an proved-image for atlys?? | 17:04 |
--- Log closed Thu Sep 03 00:00:27 2015 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!