Original memory buffer size for net is only 8M, it is enough to load
"gzrom.bin", but not enough for loading large kernel binary. Now its
size is enlarged from 8M to 64M, which is enough for typical kernel
image.
Target:all
Before on different board the NIC device symbols is
different,For example on 3a780e/3b780e the NIC device
symbol is "rte0" on 3aserver/3bserver the NIC device
symbol is "em0/em1" on 3a2h the NIC device symbol is
"syn0/syn1",Now unified the NIC device symbol as "eth".
when you use the command "ifaddr" "ifconfig" followed
by "eth0/eth1",On 3a780e/3b780e 3a2h use the command
"setmac" "readrom" "writerom" followed by "eth0/eth1"
but on 3aserver/3bserver direct use the command "setmac"
"readrom" "writerom".
Target:Bonito3a780e Bonito3b780e Bonito3aserver
Bonito3bserver Bonito3a2h
This patch adds a "setmac" command used to examine and set LS2H Gmac's
Mac address. This command puts the Mac address into the eeprom device.
When the pmon boots, Gmac reads Mac address from eeprom. By the way,
this patch also adds support for eeprom.
The patch is for bug 459 and bug 460
Target: 3a+2h
The ls2h.h head file defines all registers of LS2H. If you need to access
these registers, just include this file. In the file, it provieds four
macro defines to access the registers: read_reg_word, write_reg_word,
read_reg_byte and write_reg_byte, which access registers in word or byte.
Target: 3a+2h
1, Original code the CPU temperature is wrong, now we change reading mechanism of the CPU temperature.
2, Change the code position of initialization function "loongson_smbios_init" into the function "dbginit".
3, Add uuid support for smbios.
4, Optimization some details about smbios.
Targets: all
Original Gmac's Mac address is default value, can not be configured
manually. In this patch, Gmac obtain Mac address from environment value
"ethaddr".
Target: 3a+2h
Original only one gmac port syn0 can be used, the other syn1 is not
configured. In this patch, add confuguration for syn1, then gmac
port syn1 is normal.
Target: 3a+2h
Original code can't support ddr auto probe and training, Now ls2h
i2c controler0 is used to detect the DIMM information, and ddr auto
training can work now. It pass test with single 2G dimm and double
2G DIMM on two DDR controler.
Target:Bonito3a2h
1.when ohci1 has USB KBD and after bmc boot, pmon booting ,usb kbd can't work.
2.sb700_usb.c fixed usb hub can't work in systerm.
Targets: Bonito3aserver
When you use AST2050' VGA,you should open USE_BMC and VGA_BASE=0xb4000000 options.
Default:
rs780e vga option has been open:
USE_780E_VGA
VGA_BASE=0xbe000000
Targets: Bonito3aserver
Before: If we press the shuangfeiyan usb keyboard when the usb ohci
controller enumerate the usb devices, the usb keyboard could not work properly.
because the original code did not deal with the message from usb keyboard, so
it caused the problem as bug 382 described
http://10.2.5.24/dev/bugzilla/show_bug.cgi?id=382 shows.
Now: I add the handling code into the delay founction, so the message from the
usb keyboard can be dealed with immediately.
Test: Insert the shuangfeiyan usb keyboard, start up and press the keyboard before
the PMON command line, the keyboard can work properly.
Targets: All
1. the PHYSADDR(x) macro should be ((((long)(x))&0x1fffffff) | 0x80000000) but not ((((long)(x))&0x1fffffff) | 0x80000000a)
2. when scan sata port, it should scan two port but not one.
3. when set transfer mode of the harddisk, such as the dma mode, it should based on the information of the harddisk, but not a constant value.
4. when execute ahci_sata_rw_cmd_ext the command should be dma_read_ext and dma_write_ext but not dma_read and dma_write.
target: 3A + 2H
Original code scan every pci/pcie device and try to malloc pci memory
for them, and record every io/mem space window according pci bar. If
two video cards were registerd, the ordinary vga buffer space can't be
wroten, which lead integrated video card can't update and flush the
screen, as bugzilla:bug144 described. Because the max pci memory space
we can support is only 1G at this moment, pci memory allocation for
independtent video card is disable. If system pci memory is enlarged,
this code can be changed to support pci memory allocation for both video
card.
Target:Bonito3a780e,Bonito3b780e,Bontio3aserver,Bontio3bserver,Bonito3c780e
Now ohci usb mode support is added, both usb keyboard and usb disk
are ok. However, only DELL usb keyboard pass test. It's said this
is maybe becuase the usb signal is not very good.Thanks ZangJiading.
NOTICE:if BIOS option "INTERFACE_3A780E" is removed, usb keyboard
will fail to use, becuase some usb keyboard poll code won't be executed
if micro "INTERFACE_3A780E" isn't defined. By the way, the option
"INTERFACE_3A780E" has no relation with RS780E, it's used to mean
BIOS MENU and windows interface is enable.
Target:Bonito3a2h
Original code use 0xb8000000 as pci io base address, now use lpc io
base address as system io space. Besides, map 0xc0000000 to 0x40000000
to access video buffer on ls2h memory. Both pass test, but lpc kbd
work a little slow, it still need to be fixed.
NOTICE: if usb keyboard is used, the system pci io base need to be
changed as super io register base of south bridge.
Target:Bonito3a2h
1, This version currently supports the processor core, UART, I2C bus, DDR2 controller,
GMAC controller, NAND controller, interrupt controller, the LPC controller, SPI controller,
HDA controller, the RTC, Watchdog, the HT interface.
2, This version does not support media processors, GPU, Display Controller, SATA controller,
USB 2.0 controller, ACPI power management, PCIE interface.
3, If you want to fall back to the previous version, please use the following command:
"git clone http://10.2.5.28/gitweb/pmon-loongson3a+2h", then git reset to the place you want to reach.
Before: When port1 and port2 had hard disks, we found that port2 was wd0 and port1 was
wd1,because the code scaned port2 earlier than port1, so it caused the problem as bug 278
described as http://10.2.5.24/dev/bugzilla/show_bug.cgi?id=278 shows.
Now: When port1 and port2 have hard disks, we exchange the names of their device structure in
linked list of device.
Test: Make sure that port1 and port2 have hard disks, and boot to PMON interface, run "load
/dev/fs/ext2@wd0/boot/" and "load /dev/fs/ext2@wd1/boot/", you will find that informations
are right.
Targets: All
Before: In DMA mode, PMON can not load the small-capacity of hard sata
(0-137G). It caused the problem as Bug 231 described as
http://www.loongson.cn/dev/bugzilla/show_bug.cgi?id=231 showes.
Now: Add the support for small-capacity hard disk,PMON can load the
small capacity of sata(0-137).
Test: Start to pmon state, you observe whether PMON can load the
small-capacity of hard sata (0-137G).
Thanks zhengxingwang@loongson.cn
Targets: all
Before: In Bios Window, the F9/F10 key of usbkeyboard cannot be used.
Now: In Bios Window, the F9/F10 key of usbkeyboard could take effect as expecting.
Test: In Bios Window, you can press F9/F10 key to observe the effect.
Targets: All.
Before: We can not use large capacity disk.
Now: We can use large capacity disk.
Test: In pmon, you can observe wether we can use large capacity disk by load.
Targets: all
Before: In pmon console,loaded the file system about 13 seconds.
Now: In pmon console, opened DMA mode, loaded the file system about 3 seconds.
Test: In pmon console, You can observe the speed of the file system by load.
Thanks zhengxingwang@loongson.cn
Targets: all
Before: LSI 8708EM2 SAS RAIDm can not work.
Now: LSI 8708EM2 SAS RAIDm can work.
Test: In pmon, LSI 8708EM2 SAS RAIDm can work.
Thanks wanchao@loongson.cn
Targets:Bonito3asever
the total size of memory buffers
Before: Broadcom 5709 NIC can not work.
Now: Broadcom 5709 NIC can work.
Test: In pmon console, executiving "devls" command, you can find the device name of broadcom 5709
NIC,then Configuring the network, and then checking whether the network can link.
Thanks wanchao@loongson.cn
Targets: 3aserver
Before: Starting to pmon state, executiving "ifconfig em0 setmac" command, you can see a help
information, then executiving "h" command, you can see a help information about setmac_em0.
Now: Starting to pmon state, executiving "ifconfig em0 setmac" command, you can not see a help
information, then executiving "h" command, you can not see a help information about setmac_em0.
Test: Starting to pmon state, executiving "ifconfig em0 setmac" command, you can observe whether
see a help information, then executiving "h" command, you can observe whether see a help information
about setmac_em0.
Targets: 3aserver
Before: In the 3aserver, the help information of setmac is incorrect.
Now: In the 3aserver, the help information of setmac is correct.
Test: In 3aserver board, start to pmon state, executiving "ifconfig em0 setmac" command, you can observe whether successfully printed.
Targets: all
Now, ddr2/ddr3 can use the same codes and can be detected autoly.
Default:
ddr3 option has been open.So,you can use for ddr3-server.
If,you want to use ddr2:
you should close DDR3_DIMM option which is in "Targets/Bonito3aserver/conf/Bonito.3aserver" file.
Thanks chenxinke@ict.ac.cn and sizhiying@loongson.cn
Target:Bonito3aserver
Modify the code of command "ifaddr rte0 lwdhcp" in order to implement the function of
obtaining ip address automatically. This command will be executed before load kernel.
(First, you must configure one dhcp server.)
Mainly works on:
1. Enlarge PCI MEM space from 0x10000000~0x17ffffff to 0x40000000~0x7fffffff
2. Fixup pci/pcie slot and usb/sata interrupt line register, now kernel needn't do this
3. Support more video buffer mode (SP,UMA)X(64M,128M,256M,512M)
4. Add ejtag scan support
Notice: now assume highmemsz means high memory size of node0.
Target:Bonito3aserver
If the disk partion is larger than 120G, these errors will occure:
"There is no linux partion" or "we can't locate root directory in super
block!". Now This bug is fixed. It should be usefull for all branches.
Thanks XuHaoyu <xuhaoyu@loongson.c>
Now support GFXUMA and GFXSP mode includes: SP mode (2G,4G)X(64M,128M),UMA mode
(2G,4G)X(64M,128M,256M,512M). Notice that: In UMA mode, change physical memory
address starting from 0x80000000 in order to satisfy 32-bit pci config address
access to internal gfx device. So This bios can go ok only with the suitable
kernel image in which pysical memory address also begins with 0x80000000. In UMA
mode, if glxgears is running, sometimes black screen will appear, this may be due
to it uses too much system bandwidth. While in SP mode, this problem never occures.
Now video frame buffer size can be assigned in configuration file:Bonito.3a780e,
Changing "VRAM_SIZE=128" means set video memory size to be 128M in UMA or SP mode.
No other code need to be changed. Notice: in GFX_SP mode, max video ram size is 128M
becasue of the graphic memory capacity limit in LS3A780E board at this moment.
Submmited and tested by xiaqichao@ict.ac.cn
Target:Bonito3a780e
Now all the video memory(128M) of the graphic memory chip on LS3A780E board
are availabe. By the way, enlarge usable PCI MEM size from 0x0400000 to
0x40000000, this size shoulde be enough for lots fo bridge chip groups at
this moment. Network, usb device and ps2 keyboard are all normal both in BIOS
and kernle. Thanks xiangy@lemote.com.
NOTICE HERE: the vga bios base address of gpu driver in kernle code should
be changed to 0xc7f00000 from original 0xc7f00000 if this patch is applied,
otherwise no vga or graphic output during boot kernel.
Target: Bonito3a780e
Fix bug of failing to load kernel from SAMSUNG DVD writer with SFF-8020i
command format. However, some time it fails with error information "ERROR
ConditionCode 8/8ee4c040", but it successes to load next time. After timeout
wait time is extended, it successes to load disk image from CD/DVD disk every time.
large video frame buffer up to 512M for bridge chip connected with HT bus.
It PASS test only in GUP_SP mode, which is the defalut mode in 3A780e branch of PMON.
Address space between 0x40000000 and 0x7fffffff is map to 1G memory space before, now
system momery size is at leaset 2G, so the space is left free to be used as PCI MEM space.
While PCI IO Space and HT Space is the same as before.
NOTICE: pci mem space base address need to be changed to 0x40000000 in kenrel source code
if this patch is applied, otherwise kernel will boot fail. If the bridge chip is connected
to PCIX controler in Loongson CPU, this patch should be changed to be applied.
Target: Bontio3a780e
Time out error occurs during initializing some kind usb disk, and PMON will stop here.
This patch is used to fix the problem. It passed test with foure Netac usb diskes attached
at the same time. by xiaqichao@ict.ac.cn