Add support 4.9 support for 7260CX3 (#34)

This commit is contained in:
Samuel Angebault 2018-04-27 11:50:36 -07:00 committed by Guohan Lu
parent 6a0909e8a7
commit 0f0e7ab7e8
2 changed files with 5 additions and 0 deletions

View File

@ -175,6 +175,8 @@ platform_specific() {
echo "hugepages=128" >> /tmp/append
fi
if [ "$platform" = "rook" ]; then
echo "iommu=on intel_iommu=on tsc=reliable pcie_ports=native" >>/tmp/append
echo "rhash_entries=1 usb-storage.delay_use=0" >>/tmp/append
if [ -x /bin/readprefdl ]; then
readprefdl -f /tmp/.system-prefdl -d > /mnt/flash/.system-prefdl
elif [ -f /etc/prefdl ]; then

View File

@ -41,6 +41,9 @@ get_flash_dev() {
wait_for_root_dev() {
local try_rounds=30
while [ $try_rounds -gt 0 ]; do
if blkid | sed 's/"//g' | grep -q "$root_dev"; then
return 0
fi
if [ -e "$root_dev" ]; then
return 0
fi