fix open caculate filename len when filename_path_transform has changed filename, and filenamelen is also increased.
Change-Id: I324a7b68c85262403a0e789f21b4375e268a7cc9
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
Open() function calls fat_support() function to do replacement, which will malloc a (fnamelen - 5) + 2 + 1 length
buffer, and when we use (usb0,0)/xxx cmdline formate instead of /dev/fs/fat@usb0/xxx, fnamelen is shorter, in which
situation the strcpy to the buffer from dname will cause a mem leak, so delete '- 5' option to expand the buffer
size which can make sure the buffer is big enough for dname.
Change-Id: Ic661b22d422044f4368035be148d56ecf5f60f09
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
Check the mac addr in dtb & eeprom after boot, or after load_dtb;
If mem size in dtb is larger than max mem size, abort cmd "g";
Change-Id: I7b122658199915493a79cc99812485f43dc08c35
Before: The printf can't support i% format printing.
Now: The printf can support i% format printing.
Test: In the pmon, calling printf("%i", (int)b), 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 command format of load to "load /dev/fs/filesystem@device/file".
Now the loading command of USB device's FAT filesystem is same as others.
Also, the old format "load /dev/fat/disk@usb0/file" and "load /dev/fat/ram@address/file"
are still supported. Thanks LIU Qi <liuqi82@gmail.com>.
Target: Bonito3a780e
add loopdev support.
ramfs,mtdfs is char device.
loopdev is a block device.
losetup make chardev to be visited as a block device.
you can set env loop to let loopdevopen auto run losetup,such as on bootup.
loopdev now support unzip.
git-svn-id: file:///svn/pmon-all/pmon-all@364 214b0138-1524-0410-9122-e5cb4b5bc56c
add poweroff support,ohci has bug,if not OUTPUT_TO_BOTH,should delay(1000) in interrupt handler,why?
git-svn-id: file:///svn/pmon-all/pmon-all@199 214b0138-1524-0410-9122-e5cb4b5bc56c