1. Iterate the member in the array
declare -a array
for i in "${arrar[@]}"
do
echo $i
done
2015年5月13日 星期三
2015年5月12日 星期二
簡易DHCP server架設
In Ubuntu,
1. Configure the server IP as 192.168.1.254
2. Configure the default inteface
vi /etc/sysconfig/dhcpd
INTERFACES="eth3"
1. Configure the server IP as 192.168.1.254
2. Configure the default inteface
vi /etc/sysconfig/dhcpd
INTERFACES="eth3"
2015年4月20日 星期一
udhcpc in the Busybox
udhcpc [-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]
[-p pidfile] [-r IP] [-s script] [-O dhcp-option]...
[-p pidfile] [-r IP] [-s script] [-O dhcp-option]...
2015年4月15日 星期三
[Linux]Custom ioctl command for sockets
於network interface可定義下面的 operations
dev->open = henbin_open;
dev->stop = henbin_close;
如有需要透過sockets呼叫custom ioctl,可增加一個如下的ioctl function
dev->open = henbin_open;
dev->stop = henbin_close;
如有需要透過sockets呼叫custom ioctl,可增加一個如下的ioctl function
2015年4月7日 星期二
Enable kcs debug for OpenIPMI driver
可以透過下列的方式打開kcs debug...
echo 7 > /sys/module/ipmi_si/parameters/kcs_debug
即可在dmesg看到kcs state, 包含兩個數字
第一個數字為driver定義的kcs state:
echo 7 > /sys/module/ipmi_si/parameters/kcs_debug
即可在dmesg看到kcs state, 包含兩個數字
第一個數字為driver定義的kcs state:
2015年3月16日 星期一
[Linux]Change the baudrate while uncompressing Linux.
Edit the below source file and change the BAUD_RATE.
linux/arch/arm/include/asm/soc-ast2400/lowlevel_serial.h
linux/arch/arm/include/asm/soc-ast2400/lowlevel_serial.h
2015年3月12日 星期四
OpenBMC study
1. 如果遇到下面header file找不到__NR_setns的問題,可以把該header file後半部#if 0掉。
/poky/build/tmp/work/x86_64-linux/util-linux-native/2.24.1-r0/util-linux-2.24.1/include/namespace.h
2. 如果想改掉default root's password ('0penBmc'),可以到下面的路徑去做修改。
poky/build/conf/local.conf
3. OpenBMC沒有支援nfs protocol,但可以使用tftp方式把改好的tool/demand丟到/mnt/data (jffs2 rw)或者/(rootfs rw)下面去執行。
4. ipmid是處理IPMI request的main task,透過UNIX socket,聆聽來自/tmp/ipmi_socket的request。
/poky/build/tmp/work/x86_64-linux/util-linux-native/2.24.1-r0/util-linux-2.24.1/include/namespace.h
2. 如果想改掉default root's password ('0penBmc'),可以到下面的路徑去做修改。
poky/build/conf/local.conf
3. OpenBMC沒有支援nfs protocol,但可以使用tftp方式把改好的tool/demand丟到/mnt/data (jffs2 rw)或者/(rootfs rw)下面去執行。
4. ipmid是處理IPMI request的main task,透過UNIX socket,聆聽來自/tmp/ipmi_socket的request。
訂閱:
文章 (Atom)