blob: ef1bc0215f838f093ca630fb3e46006b27dd7298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
if [ "$1" = menu ]; then
init-menu-add-entry "$0" "Partitions"
exit
fi
norparts="256k(barebox),256k(bareboxenv),3584k(kernel),-(root)"
ramparts="-(ramdisk)"
if [ -e /dev/nor0 ]; then
addpart -n /dev/nor0 "${norparts}"
global linux.mtdparts.nor
global.linux.mtdparts.nor="physmap-flash.0:${norparts}"
else
echo "NOR Flash not found."
fi
global linux.mtdparts.ram
global.linux.mtdparts.ram="mtd-ram.0:${ramparts}"
|