Hi all
I use dvrrdk4.1 . dm8168_evm
when type ./load.sh, the console printf
ti81xxfb ti81xxfb: failed to allocate framebuffer
1ti81xxfb ti81xxfb: failed to allocate fb memory.
[mti81xxfb: probe of ti81xxfb failed with error -12
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
You will need to provide enough size for vram in bootargs.
Regars,
Brijesh
setenv bootargs 'mem=256M console=ttyO2,115200n8 rootdelay=3 root=/dev/nfs rw nfsroot=192.168.1.100:/home/mxf/target/rfs_816x ip=192.168.1.188:192.168.1.100:192.168.1.1:255.255.0.0::eth0:off vram=20M notifyk.vpssm3_sva=0xBEE00000 ddr_mem=1024M'
oh, vram has been allocated 20M, so it should be sufficient for a single frame buffer, but i am not sure how many fb pipeline are being used. can you do cat load.sh and share the log?
Regards,
Brijesh
root@dm816x:/opt/dvr_rdk/ti816x# cat load.sh
. ./parseEnv.sh
. ./env_${ENV_DDR_MEM}_${ENV_LINUX_MEM}.sh
cd ./scripts/
./load_vpss.sh
./load_video.sh
./load_c6xdsp.sh
./osa_kermod_load.sh
./wait_cmd.sh s m3vpss ${REMOTE_DEBUG_ADDR}
./wait_cmd.sh s m3video ${REMOTE_DEBUG_ADDR}
./wait_cmd.sh s c6xdsp ${REMOTE_DEBUG_ADDR}
cd -
# load module fb
insmod ./kermod/vpss.ko i2c_mode=1 sbufaddr=${HDVPSS_SHARED_MEM}
insmod ./kermod/ti81xxfb.ko vram=0:8M,1:8M,2:8M
insmod ./kermod/ti81xxhdmi.ko
insmod ./kermod/gpiorw.ko
sleep 1
#
# enable range compression in HDMI 0..255 to 16..235.
# This is needed for consumer HDTVs
#
./bin/mem_rdwr.out --wr 0x46c00524 2
Hi Eric,
From the below line, Fbdev driver requires 24MB space in vram, but in your bootargs, you are reserving only 20MB, which is why it is failing to insert. Can you increase memory in your bootargs or decrease memory for one of the fb device by 4MB?
Hi Eric,
Now Fbdev instance 2 may not work, since less memory is allocated for it. So if you need to fb2, you will require to increate memory in bootargs.
Regards,
Brijehs