Iam getting junk values that is being read by rpi's serial port. Rpi is reading data through its serial port from a zigbee which is connected to the ttyAMA0 of rpi. In the python program, i've specified the baudrate as 9600. In the sender end also, its specified as 9600. Can anyone plz help me out cyting what can be the possible solution for this?
Your problem may not just be the baudrate.
By default the Pi outputs console messages on the serial port, which is used by few. It's possible that these are interfering with your attempt to use the serial port.
Try to modify
console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1