-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_linux_dev.sh
More file actions
executable file
·53 lines (42 loc) · 1.31 KB
/
setup_linux_dev.sh
File metadata and controls
executable file
·53 lines (42 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
# Use aptitude, it is solves problems for you
sudo apt-get install aptitude
# If running Ubuntu 14.04, install these packages
sudo apt-get update
sudo aptitude install gawk wget git diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat libsdl1.2-dev xterm picocom ncurses-dev lzop \
gcc-arm-linux-gnueabihf
sudo aptitude install isc-dhcp-server
sudo aptitude install tftpd-hpa
sudo aptitude install nfs-kernel-server
echo "Modify /etc/dhcp/dhcpd.conf..."
# Setup DHCP config
# /etc/dhcp/dhcpd.conf
# subnet 10.0.0.0 netmask 255.255.255.0 {
# range 10.0.0.0 10.0.0.254;
# }
# host targetboard {
# fixed-address 10.0.0.10;
# Ethernet addr of device, from U-BOOT’s $ethaddr
# hardware ethernet 00:c0:08:92:4b:9a;
#filename "zImage";
#}
echo "Modify /etc/exports..."
# /etc/exports
# /nfsroot *(rw,sync,no_root_squash,no_subtree_check)
sudo chmod 1777 /var/lib/tftpboot/
sudo mkdir -m 777 /nfsroot
sudo service nfs-kernel-server restart
sudo service isc-dhcp-server restart
sudo service nfs-kernel-server restart
# Don't forget, set the following kernel config options
# CONFIG_NFS_FS=y
# CONFIG_NFS_V2=y
# CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL=y
# CONFIG_ROOT_NFS=y
# CONFIG_NFSD=m
# CONFIG_NFSD_V3=y
# CONFIG_NFSD_V4=y
# CONFIG_NFS_ACL_SUPPORT=y
# CONFIG_NFS_COMMON=y