2014年7月4日 星期五

How to rebuild/upgrade glibc

How to rebuild/upgrade glibc



This sample is update Glibc 2.5 to 2.7 (RHEL 5.3 x86)

Download package
ftp://ftp.gnu.org/gnu/glibc/glibc-2.7.tar.gz
ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.gz
ftp://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.5.tar.bz2


Prepare the kernel headers
# tar zxvf linux-2.6.18.tar.gz
# cd linux-2.6.18
# make mrproper
# make menuconfig
(you don't need to actually configure anything; just accept the defaults and then exit out of menuconfig)
# make dep  (ignore warning)
# mkdir -p /usr/include/linux-2.6.18
# cp -a include/linux /usr/include/linux-2.6.18/
# cp -a include/asm* /usr/include/linux-2.6.18/


Building glibc
# tar zxvf glibc-2.7.tar.gz  
# cp glibc-linuxthreads-2.5.tar.bz2 /glibc-2.7                      
# tar jxvf /glibc-2.7/glibc-linuxthreads-2.5.tar.bz2
# mkdir /build
# cd /build

# ../glibc-2.7/configure --prefix=/usr --disable-profile --enable-add-ons \
  --with-headers=/usr/include/ --libexecdir=/usr/bin
#vi config.make
add "-march=i686" after "CFLAGS = -g -O2"
# make  (If you meet error while make, you need to execute "make clean", then make again)
# make install
# ls /lib/libc-*
libc-2.7.so

Rerfer:
http://www.oregontechsupport.com/articles/glibc.php
http://www.linuxsir.org/bbs/thread368805.html

2014年7月1日 星期二

Use AMISCE tool to update BIOS configuration under linux

Use AMISCE tool to update BIOS configuration under linux

Test fucntion without change dump file
1.Copy SCELNX_64 to Linux_Flash folder
2.cd Linux_Flash
3#afulnx_64 /MAKEDRV
4.#afulnx_64 /GENDRV [Option 1] /    (ex:./afulnx_64 /GENDRV 2.6.32-71.e16.x86_64 /)
[Option 1]: Specific kernel source 'KERNEL=XXXX' , #uname-r to check
5.#make
6.#SCELNX_64 /o /s nvram.txt /h Hii.db /v /q
7.Reboot to BIOS, change some BIOS configuration
8.Save,boot to linux
9.Boot to OS, cd AMI_SCE folder
10.#SCELNX_64 /i /s nvram.txt  (Restore BIOS to original configuration)
11.Reboot to BIOS, check if configuration is back

--------------------------------------------------------
Dump all BIOS configuration:
./SCELNX_64 /o /s NVRAM.txt

-----------------------------------------------------
Change password by modify dump file
Set BIOS Administrator/User password through SCE utility:
0. Set BIOS Administrator/User password and dump nvram file(contain password) with below command
   ./SCELNX_64 /o /c /l list.txt /n nvram.txt /h hii.db
1. Dump nvram file(no password) with below command
   ./SCELNX_64 /o /c /l list.txt /n nvram.txt /h hii.db
2. Edit dumped nvram file to change "Variable Data" about AMITSESetup to set BIOS password. (see nvram.txt in step 0)

No password
Variable Name
AMITSESetup
Variable Data
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01

Username /password =>是 Admin / 111111 ; User / 111
Variable Name
AMITSESetup
Variable Data
6A 93 87 26 20 BA 6C 4D C7 E0 22 74 7D 07 D8 9A
33 2E 8E C1 E9 54 44 E8 9F 7B FA 0E 55 A2 B0 35
0B C9 66 5C C1 EF 1C 83 6A 93 87 26 20 BA 5D 4D
F6 E0 13 74 7D 07 D8 9A 33 2E 8E C1 E9 54 44 E8
9F 7B FA 0E 55 A2 B0 35 0B C9 66 5C C1 EF 1C 83
00

3. Update nvram file to system using following command.
   ./SCELNX_64 /i /l list.txt /n nvram.txt
4. Reset system and check if BIOS password is set.


Refer:
ftp://12.230.196.227/joel_drivers/BIOS%20Flash%20Utilities/Linux%20Bios%20Flash%20Procedure/UEFI/v2.37/ROMUtils_2.37/LNX/afulnx32/readme_afulnx.txt

Program Broadcom 57810 MAC address under DOS

Program Broadcom 57810 MAC address under DOS


Enter DOS mode
c:\ediag -b10eng
1:>nvm cfg 1= MAC   (20:1a:06:d7:3a:01)

#dev 2 (Enter)
2:>nvm cfg 1=MAC (20:1a:06:d7:3a:02)

#dev (Enter)
Verify MAC address

(TOP)Temp for soulin only

123