Current Server Time: 20:40 (Central Europe)

#apertus IRC Channel Logs

2013/09/30

Timezone: UTC


22:18
se6astian
good night!
22:18
se6astian
left the channel
23:04
dmj_nova
left the channel
07:27
PhilippeJ
joined the channel
08:01
se6astian
joined the channel
11:01
Bertl
morning everyone!
11:10
se6astian
hello!
11:11
se6astian
I am afraid I need some help with the TFTP setup ;)
11:13
Bertl
no problem, what is working so far and what are the issues?
11:13
se6astian
DCHP: I have a router that does DHCP, but I assume that wont do for this setup right?
11:14
se6astian
so I installed the dhcp3 server fo ubuntu as described on the wiki page
11:14
se6astian
can they work both at the same time on the same network?
11:15
Bertl
yes, they should be fine as the board uses bootp
11:16
Bertl
I presume you have a debian workstation and that one is the one used for building/debugging the zedboard, yes?
11:16
Bertl
s/debian/ubuntu/
11:17
Bertl
can you point me to the wiki page you are following?
11:18
se6astian
ubuntu 12.04 yes
11:19
se6astian
https://wiki.apertus.org/index.php?title=Axiom_Alpha_Prototype#Booting_the_Zedboard_via_TFTP
11:19
se6astian
so do I give the zedboad a fixed IP from my router dhcp?
11:19
se6astian
but how do I find out the zedboards mac address?
11:20
se6astian
I already prepared the netboot sd card
11:21
Bertl
no forget the router, configure the dhcpd to hand out dynamic IPs via bootp
11:23
Bertl
I do not see anything about dhcpd configuration on this wiki page?
11:23
se6astian
https://help.ubuntu.com/community/Installation/Netboot
11:25
Bertl
I don't see anything there either, anyway, you are using (isc) dhcpd, I presume?
11:26
se6astian
I follwed this guide: https://help.ubuntu.com/lts/installation-guide/i386/install-tftp.html
11:26
Bertl
do you have a dhcpd.conf in /etc?
11:26
se6astian
dhcp3-server
11:26
Bertl
we are talking dhcpd not tftp :)
11:27
se6astian
I have a /etc/dhcp3/dhcp.conf yes
11:27
Bertl
okay, that seems to be isc dhcp, please upload that config file
11:27
se6astian
its default so far
11:28
Bertl
I don't have an ubutu at hand
11:28
Bertl
(so I do not know the default :)
11:28
Bertl
pastebin.com
11:29
ApertusWeb8
joined the channel
11:29
Bertl
did you modify the sd card for the zedboard already or is it the default card?
11:30
ApertusWeb8
http://pastebin.com/kKVAtCqY
11:30
se6astian
I already put you boot.bin on it
11:30
se6astian
*your
11:30
Bertl
okay, good
11:30
se6astian
and that works, I see attempts to do network booting over console on the zedboard
11:30
ApertusWeb8
changed nick to: sebastian-linux
11:31
Bertl
okay, change the zedboard entry to this:
11:31
Bertl
(ah, what network do you use, local, and what do you want to use for the zedboard?)
11:33
Bertl
('ip a l' should give a hint about the local network)
11:33
se6astian
I use 192.168.10.100 - 192.168.10.150 as router DHCP range
11:33
Bertl
so that's your local range, yes?
11:33
se6astian
yes
11:34
Bertl
i.e. your ubuntu box has an IP in this range
11:34
Bertl
I'd suggest to use a different network for the zedboard to avoid confusing the router
11:34
se6astian
yes .121
11:35
Bertl
but if you like, you can also assign a static IP to the zedboard (on the router) and serve the same IP as dynamic IP from your ubuntu box
11:35
se6astian
yes thats what I wanted to do
11:35
se6astian
but since I dont know the zedboards mac address I had trouble to add it to the table :)
11:35
Bertl
is the zedboard conencted via gbit ethernet?
11:37
se6astian
yes
11:37
Bertl
to a gbit switch conencting it with the router and your workstation?
11:38
Bertl
i.e. do you have gbit speed between workstation and zedboard?
11:38
se6astian
yes
11:38
Bertl
good, and it is the same shared network you use for connecting the workstation to the outside, yes?
11:39
Bertl
does the workstation have more than one ethernet jack?
11:39
se6astian
same as to outside, no single ethernet
11:39
se6astian
* no, single ethernet
11:40
Bertl
okay, you are in front of the machine (or nearby)?
11:43
se6astian
yes
11:44
Bertl
okay, open a root terminal, check what your interface is
11:44
Bertl
(ip l l)
11:44
se6astian
eth0
11:44
Bertl
start tcpdump -vvnei eth0
11:44
Bertl
disconnect your ethernet cable and directly connect the zedboard to this ethernet jack
11:45
Bertl
then power up the zedboard, interrupt the bootloader
11:45
Bertl
(by pressing a key)
11:45
Bertl
and enter 'bootp'
11:46
Bertl
the zedboard will send bootp requests which will get dumped by the tcpdump
11:46
Bertl
they also contain the MAC address, write it down
11:49
Bertl
then adjust the dhcpd file to contain the following:
11:49
Bertl
http://pastebin.com/zG3MKEhC
11:49
Bertl
where YYY is your workstation and XXX ist the zedboard IP and correct the hardware ethernet address if necessary
11:50
se6astian
interrupt the bootloader on the zedboard, with a pushbutton on the zedboard or by sending commands via uart?
11:50
Bertl
via pressing a key on the uart terminal
11:50
se6astian
but actually the zedboard is sending boot requests all the time even without my interaction
11:50
sebastian-linux
left the channel
11:50
Bertl
okay, even better
11:51
Bertl
so it is probably already looping and trying to boot via tftp
11:52
Bertl
you probably need to define a subnet for your network to contain the configuration (in dhcpd)
11:52
Bertl
i.e. something like this:
11:55
Bertl
http://pastebin.com/gCNkHi7A
11:56
Bertl
if the config is fine, dhcpd should be able to start (i.e. not complaining) and should answer to the zedboard requests
11:56
Bertl
(check with the logs)
11:58
Bertl
the zedboard will get the 192.168.10.XXX IP and will request the /ZED/u-boot.scr" from tftp server at 192.168.10.YYY
11:58
Bertl
(all of this will go to /var/log/messages or separated log files)
12:00
se6astian
ok mac address intercepted
12:00
se6astian
dhcp.conf updated
12:00
ApertusWeb0
joined the channel
12:01
se6astian
http://pastebin.com/gCNkHi7A
12:01
ApertusWeb0
changed nick to: sebastian-linux
12:03
se6astian
is 00:0A:35:00:01:22 the mac address of your zedboard?
12:22
se6astian
it does something, not everything yet though: http://pastebin.com/3qeAu6Np
12:35
sashacohen
joined the channel
12:39
Bertl
okay, so .10.1 is your workstation?
12:49
se6astian
no 1.1 is the router
12:50
se6astian
sorry 10.1
12:50
se6astian
and 10.140 is my fileserver
12:51
se6astian
no wait 10.140 is the zedboard
12:57
Bertl
why do you send 10.1 as next server to the zedboard then?
12:58
Bertl
or to put it the other way round, what is your dhcpd config atm?
13:01
se6astian
exactly as you suggested it
13:01
se6astian
but the router does DHCP as well
13:01
Bertl
with XXX and YY?
13:01
se6astian
that might be interfering
13:01
se6astian
121 and 140
13:01
Bertl
pleas upload the currenten complete config and tell your router to not handle this IP
13:01
Bertl
IP/mac
13:02
Bertl
if that is not possible, you have to pick a separate network like 192.168.11.x
13:02
Bertl
the router must not answer for dhcp/bootp requests for the zedboard mac
13:02
se6astian
I currently have my router configured to hand out fixed IPs for 121 and 140, you mean I should disable that again?
13:03
Bertl
the router can hand out the IP for your workstation, that is fine, but it must ignore requests from the zedboard
13:03
se6astian
the router is currently set to DNSMasq enabled
13:03
se6astian
might that be the problem?
13:04
Bertl
when the router answers to the bootp/dhcp requests from the zedboard it is already wrong
13:04
Bertl
i.e. configure the router to _not_ answer any requests from the zedboard (regarding bootp/dhcpd)
13:04
se6astian
there are no bootp options in the router config
13:05
Bertl
if you cannot configure the router properly, you have two options:
13:06
Bertl
1) get a second nic (preferably gigabit) and connect the zedboard directly to the workstation
13:06
Bertl
2) try to configure the router to send the next-server option and the proper boot filename for the zedboard
13:09
se6astian
router does not respond to dhcp/bootp anymore
13:09
se6astian
now the zedboard doesnt find a source to boot from though
13:09
se6astian
how can I verify my workstation is set up properly in this regard
13:10
sebastian-linux
here is the dhcpd.conf: http://pastebin.com/7R6hxJw2
13:11
sebastian-linux
I reinit this conf with "sudo service networking restart" right?
13:25
Bertl
no, service dhcpd restart (or dhcpd3 or dhcp-server)
13:26
Bertl
the MAC is correct? i.e. your zedboard has the same as mine?
13:27
Bertl
and check with the log(s) what dhcp says when being restarted
13:27
sebastian-linux
thats what I just wanted to ask yes, it looks like it
13:28
Bertl
probably the hard-coded mac in the bootloader
13:28
Bertl
i.e. somehow it doesn't figure out the correct one, but that doesn't really matter
13:28
sebastian-linux
there is no dhc* service
13:29
Bertl
well, ubuntu/debian is different :)
13:30
Bertl
sudo /etc/init.d/networking restart
13:30
Bertl
(says google)
13:30
sebastian-linux
haha its now called: sudo service isc-dhcp-server
13:31
Bertl
that sounds more like it
13:31
se6astian
good, the zedboard finds a server to boot from
13:31
se6astian
next step
13:31
se6astian
TFTP error: 'File not found' (1)
13:31
se6astian
:)
13:31
Bertl
so it already requests the ZED/..
13:31
Bertl
good, you did configure the tftp service (and restart it? :)
13:32
Bertl
if so, tftp should also log the requests
13:32
Bertl
you then want to copy my ZED directory in the tftp dir
13:32
Bertl
(usually that is /var/lib/tftpboot
13:33
sebastian-linux
I followed this guide
13:33
sebastian-linux
http://www.davidsudjiman.info/2006/03/27/installing-and-setting-tftpd-in-ubuntu/
13:33
Bertl
but I'm pretty sure ubuntu/debian has a special place for it :)
13:33
sebastian-linux
and put everything in /tftpboot
13:33
Bertl
I doubt ubuntu uses /tftpboot?
13:33
sebastian-linux
not sure
13:34
Bertl
debian and debian derivatives hate putting anything in /
13:34
sebastian-linux
there is /var/lib/tftpboot does indeed
13:34
Bertl
and I don't think you want to mess with the xinetd config
13:35
Bertl
i.e. installing the tftp package should suffice
13:35
Bertl
(and I'd revert any additional changes you did)
13:35
sebastian-linux
moved the files to the correct place
13:35
sebastian-linux
lets see if that does the trick already
13:36
sebastian-linux
and we have lift off!
13:36
sebastian-linux
the zedboard boots
13:36
sebastian-linux
though it has a kernel panic after 1 second :)
13:36
Bertl
really? did you add the symlinks already?
13:37
sebastian-linux
ah, that could be it :)
13:46
se6astian
hurray now it seems to be working
13:47
se6astian
http://pastebin.com/KtGEdwu3
13:49
se6astian
ok now I gotta go to the supermarket :)
13:49
se6astian
bbs
13:52
sebastian-linux
left the channel
13:55
Bertl
looks like you are still missing a bunch of files
13:55
Bertl
(or symbolic links that is)
13:56
Bertl
at least system.bin and ramdisk.image.gz
13:57
Bertl
I also suggest to link the zImage to BERTL.xilinx/zImage
15:02
PhilippeJ
left the channel
15:52
sashacohen
left the channel
17:02
se6astian
strange, I mapped all the files with symlinks the same way
17:02
se6astian
will debug it tomorrow
17:02
se6astian
now I will prepare the press release
17:02
se6astian
sasha has overdone the reviewing a little :)
17:21
Bertl
overdone in what way?
17:22
Bertl
and regarding boot/symlinks: just upload the log file output tftpd writes
17:22
Bertl
(it should contain all the requests and replies, if not, it can be enabled by an option)
17:29
se6astian
overdone in the sence of changing the original meaning of some sentences
17:29
se6astian
I will check how to enable / or where the log files are
17:29
se6astian
I took a quick look at /var/log
17:29
se6astian
but there wasnt anything related
17:29
se6astian
systemd didn't contain anything either
17:30
Bertl
ah, well, looks like he misunderstood what you were trying to say ... so good that this was caught
17:30
Bertl
check who spawns tftpd, if it is xinetd, then the config is there
17:31
Bertl
i.e. in /etc/xinetd.d/tftp
17:31
Bertl
adding -v to server_args will give more verbosity
17:31
Bertl
(can be done repeatedly)
17:33
se6astian
thanks!
17:33
Bertl
np
19:31
se6astian
left the channel