The installation procedure itself is broken into four steps.
Please copy the gdbinit file to the current directory as ".gdbinit".
cp arch/m32r/mappi2/dot.gdbinit .gdbinitEach platform has its own gdbinit file. Please use the appropreate gdbinit file.
Platform | File |
---|---|
uT-Engine | arch/m32r/m32700ut/dot.gdbinit |
Mappi-II(M3A-ZA36) | arch/m32r/mappi2/dot.gdbinit |
Gdbinit file contains the following configuration line which depends on the environment. Please modify it for your environment.
set {char[0x200]}($param + 0x100) = "console=ttyD0,115200n8x root=/dev/nfsroot nfsroot=192.168.0.1:/project/m32r-linux/export/root.2.4 nfsaddrs=192.168.0.101:192.168.0 .1:192.168.0.1:255.255.255.0:mappi001: \0"This line defines boot arguments of Linux kernel.
Parameter | Function |
---|---|
console | Console device and its baud rate. |
root | Target's root file system. |
nfsroot | Configuration of NFS root file system. nfsroot=<server-ip>:<root-dir> <server-ip> -- The IP address of the NFS server. <root-dir> -- Name of the directory on the server to mount as root. |
nfsaddrs | Configuration of network. nfsaddrs=<my-ip>:<server-ip>:<gw-ip>:<netmask>:<name> <my-ip> -- The IP address of the target. <server-ip> -- The IP address of the NFS server. <gw-ip> -- The IP address of the gateway. <netmask> -- Netmask. <name> -- Host name of the targetk. |
> su > /usr/local/m32r-linux-3.2/bin/sdiserver sdiserver 1.5 Copyright (c) 2003 Renesas Technology Co. All rights reserved. Waiting for connection to port 3232
cu -s 115200 -l /dev/ttyS0
> m32r-linux-gdb GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i586-pc-linux-gnu --target=m32r-linux". (gdb)You can connect gdb to the target by target command. Please use m32rsdi as target command's argument.
(gdb) target m32rsdi Remote m32rsdi connected to M32R/XNUXIf you get a message like "Remote m32rsdi connected to ...", the connection between gdb and the target is established correctly.
Please enter restart command. Restart command is defined in gdbinit file. It configures target board and download/run the kernel.
(gdb) restartCheck the serial console to see Linux kernel outputs boot messages.